Update for GstURIHandler get_protocols() changes

This commit is contained in:
Tim-Philipp Müller 2011-11-13 23:44:23 +00:00
parent 455f337e3d
commit c76e5804b3
6 changed files with 14 additions and 13 deletions

View file

@ -150,13 +150,13 @@ gst_gio_uri_handler_get_type_src (GType type)
return GST_URI_SRC;
}
static gchar **
static const gchar *const *
gst_gio_uri_handler_get_protocols (GType type)
{
static gchar **protocols = NULL;
static const gchar *const *protocols = NULL;
if (!protocols)
protocols = gst_gio_get_supported_protocols ();
protocols = (const gchar * const *) gst_gio_get_supported_protocols ();
return protocols;
}

View file

@ -1364,10 +1364,10 @@ gst_app_sink_uri_get_type (GType type)
return GST_URI_SINK;
}
static gchar **
static const gchar *const *
gst_app_sink_uri_get_protocols (GType type)
{
static gchar *protocols[] = { (char *) "appsink", NULL };
static const gchar *protocols[] = { "appsink", NULL };
return protocols;
}
@ -1395,4 +1395,5 @@ gst_app_sink_uri_handler_init (gpointer g_iface, gpointer iface_data)
iface->get_protocols = gst_app_sink_uri_get_protocols;
iface->get_uri = gst_app_sink_uri_get_uri;
iface->set_uri = gst_app_sink_uri_set_uri;
}

View file

@ -1611,10 +1611,10 @@ gst_app_src_uri_get_type (GType type)
return GST_URI_SRC;
}
static gchar **
static const gchar *const *
gst_app_src_uri_get_protocols (GType type)
{
static gchar *protocols[] = { (char *) "appsrc", NULL };
static const gchar *protocols[] = { "appsrc", NULL };
return protocols;
}

View file

@ -897,10 +897,10 @@ gst_audio_cd_src_uri_get_type (GType type)
return GST_URI_SRC;
}
static gchar **
static const gchar *const *
gst_audio_cd_src_uri_get_protocols (GType type)
{
static gchar *protocols[] = { (char *) "cdda", NULL };
static const gchar *protocols[] = { "cdda", NULL };
return protocols;
}

View file

@ -58,10 +58,10 @@ gst_caps_src_uri_get_type (void)
return GST_URI_SRC;
}
static gchar **
static const gchar *const *
gst_caps_src_uri_get_protocols (void)
{
static gchar *protocols[] = { (char *) "caps", NULL };
static const gchar *protocols[] = { "caps", NULL };
return protocols;
}

View file

@ -515,10 +515,10 @@ gst_red_video_src_uri_get_type (void)
return GST_URI_SRC;
}
static gchar **
static const gchar *const *
gst_red_video_src_uri_get_protocols (void)
{
static gchar *protocols[] = { (char *) "redvideo", NULL };
static const gchar *protocols[] = { "redvideo", NULL };
return protocols;
}