gsturi: Fixed incorrect escaping of path as a generic string
authorDimitrios Katsaros <patcherwork@gmail.com>
Wed, 14 Jun 2017 15:36:57 +0000 (17:36 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 15 Jun 2017 08:39:00 +0000 (11:39 +0300)
commit688d79033f5e212f64d6f81060bf275f8a319ec2
tree361b5da4cc040df62db5c65774548938d955f04c
parentd4032d9e0f1840aec8e9fae53c74eac9e75113ac
gsturi: Fixed incorrect escaping of path as a generic string

The gst_uri_construct function was escaping the location string
as a generic uri string. This is incorrect since the slash('/')
characters are reserved for use in this exact case. The patch
changes the escape_string function mode to handle the path correctly.

I have deleted the escape_string function since it is no longer being
used and have created a unit test for the function. I have also
deprecated this function in favour of the GstUri API.

https://bugzilla.gnome.org/show_bug.cgi?id=783787
gst/gsturi.c
gst/gsturi.h
tests/check/gst/gsturi.c