From: RĂ©mi Duraffort Date: Sun, 14 Dec 2008 17:58:41 +0000 (+0100) Subject: vlm: don't remove quotes around name in X-Git-Tag: 1.0.0-pre1~1795 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a3a59eb0f7261e5b888c19fbe038619005b66411;p=vlc vlm: don't remove quotes around name in setup test output #standard{mux=ts,access=udp,dst=239.255.100.42,sap,name="Pouet Pouet"} That's maybe not the best way to do this. Fix #2346 --- diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c index 83a5639e7e..b55e632e9b 100644 --- a/src/input/vlmshell.c +++ b/src/input/vlmshell.c @@ -138,9 +138,20 @@ static const char *FindCommandEnd( const char *psz_sent ) static int Unescape( char *out, const char *in ) { char c, quote = 0; + bool param = false; while( (c = *in++) != '\0' ) { + // Don't escape the end of the string if we find a '#' + // that's the begining of a vlc command + // TODO: find a better solution + if( c == '#' || param ) + { + param = true; + *out++ = c; + continue; + } + if( !quote ) { if (strchr(quotes,c)) // opening quote