filesink: Fix escaping of URIs

Especially don't escape / as path separators
This commit is contained in:
Sebastian Dröge 2011-02-15 22:48:44 +01:00
parent df9f72e78c
commit c4be9526eb

View file

@ -302,7 +302,7 @@ gst_file_sink_set_location (GstFileSink * sink, const gchar * location)
/* we store the filename as we received it from the application. On Windows
* this should be in UTF8 */
sink->filename = g_strdup (location);
sink->uri = gst_uri_construct ("file", sink->filename);
sink->uri = g_filename_to_uri (sink->filename, NULL, NULL);
} else {
sink->filename = NULL;
sink->uri = NULL;