mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
splitfilesrc: re-port to 0.11
This commit is contained in:
parent
9b13a29f91
commit
1d659d8e41
1 changed files with 10 additions and 22 deletions
|
@ -91,22 +91,9 @@ GST_DEBUG_CATEGORY_STATIC (splitfilesrc_debug);
|
||||||
#define GST_CAT_DEFAULT splitfilesrc_debug
|
#define GST_CAT_DEFAULT splitfilesrc_debug
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstSplitFileSrc, gst_split_file_src, GST_TYPE_BASE_SRC);
|
G_DEFINE_TYPE_WITH_CODE (GstSplitFileSrc, gst_split_file_src, GST_TYPE_BASE_SRC,
|
||||||
|
G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER,
|
||||||
static void
|
gst_split_file_src_uri_handler_init));
|
||||||
_do_init (GType type)
|
|
||||||
{
|
|
||||||
static const GInterfaceInfo urihandler_info = {
|
|
||||||
gst_split_file_src_uri_handler_init,
|
|
||||||
NULL,
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
g_type_add_interface_static (type, GST_TYPE_URI_HANDLER, &urihandler_info);
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (splitfilesrc_debug, "splitfilesrc", 0,
|
|
||||||
"Split File src");
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#define WIN32_BLURB " Location string must be in UTF-8 encoding (on Windows)."
|
#define WIN32_BLURB " Location string must be in UTF-8 encoding (on Windows)."
|
||||||
|
@ -633,20 +620,20 @@ cancelled:
|
||||||
}
|
}
|
||||||
|
|
||||||
static guint
|
static guint
|
||||||
gst_split_file_src_uri_get_type (void)
|
gst_split_file_src_uri_get_type (GType type)
|
||||||
{
|
{
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static const gchar *const *
|
||||||
gst_split_file_src_uri_get_protocols (void)
|
gst_split_file_src_uri_get_protocols (GType type)
|
||||||
{
|
{
|
||||||
static const gchar *protocols[] = { "splitfile", NULL };
|
static const gchar *protocols[] = { "splitfile", NULL };
|
||||||
|
|
||||||
return (gchar **) protocols;
|
return (const gchar * const *) protocols;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const gchar *
|
static gchar *
|
||||||
gst_split_file_src_uri_get_uri (GstURIHandler * handler)
|
gst_split_file_src_uri_get_uri (GstURIHandler * handler)
|
||||||
{
|
{
|
||||||
GstSplitFileSrc *src = GST_SPLIT_FILE_SRC (handler);
|
GstSplitFileSrc *src = GST_SPLIT_FILE_SRC (handler);
|
||||||
|
@ -663,7 +650,8 @@ gst_split_file_src_uri_get_uri (GstURIHandler * handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_split_file_src_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
gst_split_file_src_uri_set_uri (GstURIHandler * handler, const gchar * uri,
|
||||||
|
GError ** error)
|
||||||
{
|
{
|
||||||
GstSplitFileSrc *src = GST_SPLIT_FILE_SRC (handler);
|
GstSplitFileSrc *src = GST_SPLIT_FILE_SRC (handler);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue