mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 14:02:26 +00:00
Update for GstURIHandler get_protocols() changes
This commit is contained in:
parent
455f337e3d
commit
c76e5804b3
6 changed files with 14 additions and 13 deletions
|
@ -150,13 +150,13 @@ gst_gio_uri_handler_get_type_src (GType type)
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_gio_uri_handler_get_protocols (GType type)
|
gst_gio_uri_handler_get_protocols (GType type)
|
||||||
{
|
{
|
||||||
static gchar **protocols = NULL;
|
static const gchar *const *protocols = NULL;
|
||||||
|
|
||||||
if (!protocols)
|
if (!protocols)
|
||||||
protocols = gst_gio_get_supported_protocols ();
|
protocols = (const gchar * const *) gst_gio_get_supported_protocols ();
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1364,10 +1364,10 @@ gst_app_sink_uri_get_type (GType type)
|
||||||
return GST_URI_SINK;
|
return GST_URI_SINK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_app_sink_uri_get_protocols (GType type)
|
gst_app_sink_uri_get_protocols (GType type)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { (char *) "appsink", NULL };
|
static const gchar *protocols[] = { "appsink", NULL };
|
||||||
|
|
||||||
return protocols;
|
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_protocols = gst_app_sink_uri_get_protocols;
|
||||||
iface->get_uri = gst_app_sink_uri_get_uri;
|
iface->get_uri = gst_app_sink_uri_get_uri;
|
||||||
iface->set_uri = gst_app_sink_uri_set_uri;
|
iface->set_uri = gst_app_sink_uri_set_uri;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1611,10 +1611,10 @@ gst_app_src_uri_get_type (GType type)
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_app_src_uri_get_protocols (GType type)
|
gst_app_src_uri_get_protocols (GType type)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { (char *) "appsrc", NULL };
|
static const gchar *protocols[] = { "appsrc", NULL };
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
|
|
@ -897,10 +897,10 @@ gst_audio_cd_src_uri_get_type (GType type)
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_audio_cd_src_uri_get_protocols (GType type)
|
gst_audio_cd_src_uri_get_protocols (GType type)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { (char *) "cdda", NULL };
|
static const gchar *protocols[] = { "cdda", NULL };
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,10 +58,10 @@ gst_caps_src_uri_get_type (void)
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_caps_src_uri_get_protocols (void)
|
gst_caps_src_uri_get_protocols (void)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { (char *) "caps", NULL };
|
static const gchar *protocols[] = { "caps", NULL };
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
|
|
@ -515,10 +515,10 @@ gst_red_video_src_uri_get_type (void)
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_red_video_src_uri_get_protocols (void)
|
gst_red_video_src_uri_get_protocols (void)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { (char *) "redvideo", NULL };
|
static const gchar *protocols[] = { "redvideo", NULL };
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue