static void gst_rtsp_media_mapping_finalize (GObject * obj);
-static GstRTSPMediaFactory * find_media (GstRTSPMediaMapping *mapping, const GstRTSPUrl *url);
+static GstRTSPMediaFactory *find_media (GstRTSPMediaMapping * mapping,
+ const GstRTSPUrl * url);
static void
gst_rtsp_media_mapping_class_init (GstRTSPMediaMappingClass * klass)
gst_rtsp_media_mapping_init (GstRTSPMediaMapping * mapping)
{
mapping->mappings = g_hash_table_new_full (g_str_hash, g_str_equal,
- g_free, g_object_unref);
+ g_free, g_object_unref);
}
static void
}
static GstRTSPMediaFactory *
-find_media (GstRTSPMediaMapping *mapping, const GstRTSPUrl *url)
+find_media (GstRTSPMediaMapping * mapping, const GstRTSPUrl * url)
{
GstRTSPMediaFactory *result;
* path of the uri to find a mapping. If the mapping depends on other
* properties found in the url, this method should be overridden. */
result = g_hash_table_lookup (mapping->mappings, url->abspath);
- if (result)
+ if (result)
g_object_ref (result);
GST_INFO ("found media %p for url abspath %s", result, url->abspath);
* Returns: the #GstRTSPMediaFactory for @url. g_object_unref() after usage.
*/
GstRTSPMediaFactory *
-gst_rtsp_media_mapping_find_factory (GstRTSPMediaMapping *mapping, const GstRTSPUrl *url)
+gst_rtsp_media_mapping_find_factory (GstRTSPMediaMapping * mapping,
+ const GstRTSPUrl * url)
{
GstRTSPMediaFactory *result;
GstRTSPMediaMappingClass *klass;
* used after calling this function.
*/
void
-gst_rtsp_media_mapping_add_factory (GstRTSPMediaMapping *mapping, const gchar *path,
- GstRTSPMediaFactory *factory)
+gst_rtsp_media_mapping_add_factory (GstRTSPMediaMapping * mapping,
+ const gchar * path, GstRTSPMediaFactory * factory)
{
g_return_if_fail (GST_IS_RTSP_MEDIA_MAPPING (mapping));
g_return_if_fail (GST_IS_RTSP_MEDIA_FACTORY (factory));
* Remove the #GstRTSPMediaFactory associated with @path in @mapping.
*/
void
-gst_rtsp_media_mapping_remove_factory (GstRTSPMediaMapping *mapping, const gchar *path)
+gst_rtsp_media_mapping_remove_factory (GstRTSPMediaMapping * mapping,
+ const gchar * path)
{
g_return_if_fail (GST_IS_RTSP_MEDIA_MAPPING (mapping));
g_return_if_fail (path != NULL);
g_hash_table_remove (mapping->mappings, path);
}
-