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
12 - src->filename = g_strdup (location);
13 + const gchar *file_prefix = "file://";
15 + if (g_str_has_prefix (location, file_prefix)) {
16 + src->filename = g_strdup (location + strlen (file_prefix));
18 + src->filename = g_strdup (location);
20 src->uri = gst_uri_construct ("file", src->filename);
22 g_object_notify (G_OBJECT (src), "location");