[vlc-commits] commit: Fix quoted values containing # in VLM shell. (Antoine Cellerier )

git version control git at videolan.org
Fri Mar 5 19:36:15 CET 2010


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Mar  5 19:37:03 2010 +0100| [6ff5a488a41ed665a285276dde65e28d751aa4e7] | committer: Antoine Cellerier 

Fix quoted values containing # in VLM shell.

(close #3154, thanks to Marnik Vander Elst)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ff5a488a41ed665a285276dde65e28d751aa4e7
---

 src/input/vlmshell.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index 27c97e0..6025304 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -134,7 +134,7 @@ static int Unescape( char *out, const char *in )
         // 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 )
+        if( ( c == '#' && !quote ) || param )
         {
             param = true;
             *out++ = c;



More information about the vlc-commits mailing list