| Top |
A GstRTSPMountPoints object maintains a relation between paths and GstRTSPMediaFactory objects. This object is usually given to GstRTSPClient and used to find the media attached to a path.
With gst_rtsp_mount_points_add_factory() and
gst_rtsp_mount_points_remove_factory(), factories can be added and
removed.
With gst_rtsp_mount_points_match() you can find the GstRTSPMediaFactory
object that completely matches the given path.
Last reviewed on 2013-07-11 (1.0.0)
GstRTSPMountPoints *
gst_rtsp_mount_points_new (void);
Make a new mount points object.
void gst_rtsp_mount_points_add_factory (GstRTSPMountPoints *mounts,const gchar *path,GstRTSPMediaFactory *factory);
Attach factory
to the mount point path
in mounts
.
path
is of the form (/node)+. Any previous mount point will be freed.
Ownership is taken of the reference on factory
so that factory
should not be
used after calling this function.
void gst_rtsp_mount_points_remove_factory (GstRTSPMountPoints *mounts,const gchar *path);
Remove the GstRTSPMediaFactory associated with path
in mounts
.
GstRTSPMediaFactory * gst_rtsp_mount_points_match (GstRTSPMountPoints *mounts,const gchar *path,gint *matched);
Find the factory in mounts
that has the longest match with path
.
If matched
is NULL, path
will match the factory exactly otherwise
the amount of characters that matched is returned in matched
.
gchar * gst_rtsp_mount_points_make_path (GstRTSPMountPoints *mounts,const GstRTSPUrl *url);
Make a path string from url
.
struct GstRTSPMountPoints;
Creates a GstRTSPMediaFactory object for a given url.