mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
filesink: Fix escaping of URIs
Especially don't escape / as path separators
This commit is contained in:
parent
df9f72e78c
commit
c4be9526eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
/* we store the filename as we received it from the application. On Windows
|
||||||
* this should be in UTF8 */
|
* this should be in UTF8 */
|
||||||
sink->filename = g_strdup (location);
|
sink->filename = g_strdup (location);
|
||||||
sink->uri = gst_uri_construct ("file", sink->filename);
|
sink->uri = g_filename_to_uri (sink->filename, NULL, NULL);
|
||||||
} else {
|
} else {
|
||||||
sink->filename = NULL;
|
sink->filename = NULL;
|
||||||
sink->uri = NULL;
|
sink->uri = NULL;
|
||||||
|
|
Loading…
Reference in a new issue