[Bug 752611] validate:launcher: handle folder names with spaces in --medias-paths.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 20 01:38:52 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=752611

--- Comment #4 from Vineeth <vineeth.tm at samsung.com> ---

The reason, the folders with special characters are not being handled is
we use path2url and url2path to convert the path to url in python.
This converts space to %20 and similarly for other special characters

And while passing it to g_file_set_contents, it is not able to handle '%20'

By doing path = urllib.unquote(path) in url2path, i was able to remove '%20'
and replace it with space. With this change, media_info was getting created.

But, while passing the same to --set-media-info like below,
gst-validate-1.0  playbin uri=file:///home/user/gst/master/11%202/garden.mp3
--set-media-info /home/user/gst/master/11 2/garden.mp3.media_info

the file path is getting truncated like /home/user/gst/master/11, since there
is a space after 11. So it is not able to set the media info..

gst-validate-1.0  playbin uri=file:///home/user/gst/master/11%202/garden.mp3
--set-media-info /home/user/gst/master/11%202/garden.mp3.media_info
this also fails.. The only way media-info is being accepted is like below

gst-validate-1.0  playbin uri=file:///home/user/gst/master/11%202/garden.mp3
--set-media-info /home/user/gst/master/11\ 2/garden.mp3.media_info

So i was wondering, if there is any way to convert the special characters in
python to handle this scenario

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list