]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gstreamer/gstreamer/filesrc-uri.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gstreamer / gstreamer / filesrc-uri.patch
1 Index: gst/elements/gstfilesrc.c
2 ===================================================================
3 RCS file: /cvs/gstreamer/gstreamer/gst/elements/gstfilesrc.c,v
4 retrieving revision 1.108.4.3
5 diff -u -r1.108.4.3 gstfilesrc.c
6 --- gstreamer.orig/gst/elements/gstfilesrc.c    3 Jun 2005 09:29:31 -0000       1.108.4.3
7 +++ gstreamer/gst/elements/gstfilesrc.c 12 Aug 2005 11:54:38 -0000
8 @@ -306,7 +306,13 @@
9      src->filename = NULL;
10      src->uri = NULL;
11    } else {
12 -    src->filename = g_strdup (location);
13 +    const gchar *file_prefix = "file://";
14 +
15 +    if (g_str_has_prefix (location, file_prefix)) {
16 +      src->filename = g_strdup (location + strlen (file_prefix));
17 +    } else {
18 +      src->filename = g_strdup (location);
19 +    }
20      src->uri = gst_uri_construct ("file", src->filename);
21    }
22    g_object_notify (G_OBJECT (src), "location");