gstvalue: only unwrap string delimited with "
authorLuis de Bethencourt <luis.bg@samsung.com>
Thu, 26 Mar 2015 17:01:06 +0000 (17:01 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 27 Mar 2015 17:18:23 +0000 (17:18 +0000)
commit555e0211c8c67814546eca1c572af78840902eba
treea02f72216bbe79655891c2d8be5c1a68b7d77864
parentc565c5ecb4f3dd766ff9156a4cf2d5d5adbc0396
gstvalue: only unwrap string delimited with "

Don't unwrap strings that start but don't finish with a double quote. If a
string is delimited by two quotes we unescape them and any special characters
in the middle (like \" or \\). If the first character or the last character
aren't a quote we assume it's part of an unescaped string.

Moved some deserialize_string unit tests because we don't try to unwrap strings
missing that second quote anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=688625
gst/gstvalue.c
tests/check/gst/gstvalue.c