aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gstreamer/gstreamer/filesrc-uri.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gstreamer/gstreamer/filesrc-uri.patch')
-rw-r--r--recipes/gstreamer/gstreamer/filesrc-uri.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/gstreamer/gstreamer/filesrc-uri.patch b/recipes/gstreamer/gstreamer/filesrc-uri.patch
new file mode 100644
index 0000000000..0bde73d970
--- /dev/null
+++ b/recipes/gstreamer/gstreamer/filesrc-uri.patch
@@ -0,0 +1,22 @@
+Index: gst/elements/gstfilesrc.c
+===================================================================
+RCS file: /cvs/gstreamer/gstreamer/gst/elements/gstfilesrc.c,v
+retrieving revision 1.108.4.3
+diff -u -r1.108.4.3 gstfilesrc.c
+--- gstreamer.orig/gst/elements/gstfilesrc.c 3 Jun 2005 09:29:31 -0000 1.108.4.3
++++ gstreamer/gst/elements/gstfilesrc.c 12 Aug 2005 11:54:38 -0000
+@@ -306,7 +306,13 @@
+ src->filename = NULL;
+ src->uri = NULL;
+ } else {
+- src->filename = g_strdup (location);
++ const gchar *file_prefix = "file://";
++
++ if (g_str_has_prefix (location, file_prefix)) {
++ src->filename = g_strdup (location + strlen (file_prefix));
++ } else {
++ src->filename = g_strdup (location);
++ }
+ src->uri = gst_uri_construct ("file", src->filename);
+ }
+ g_object_notify (G_OBJECT (src), "location");