[vlc-commits] macosx: escape sout filenames (fix #19841)

Marvin Scholz git at videolan.org
Tue Feb 27 02:30:06 CET 2018


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Feb 27 02:25:32 2018 +0100| [14a4897c77e8e05a371d10ffb1af9129aed561eb] | committer: Marvin Scholz

macosx: escape sout filenames (fix #19841)

(cherry picked from commit be581ce69fa00d73fe9e08b176cad64bad9d3474)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=14a4897c77e8e05a371d10ffb1af9129aed561eb
---

 modules/gui/macosx/VLCConvertAndSaveWindowController.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCConvertAndSaveWindowController.m b/modules/gui/macosx/VLCConvertAndSaveWindowController.m
index 037cd40c5b..6877dc9214 100644
--- a/modules/gui/macosx/VLCConvertAndSaveWindowController.m
+++ b/modules/gui/macosx/VLCConvertAndSaveWindowController.m
@@ -938,7 +938,9 @@
 
 
         // add output destination
-        [composedOptions appendFormat:@",access=file{no-overwrite},dst=%@}", _outputDestination];
+        _outputDestination = [_outputDestination stringByReplacingOccurrencesOfString:@"\""
+                                                                           withString:@"\\\""];
+        [composedOptions appendFormat:@",access=file{no-overwrite},dst=\"%@\"}", _outputDestination];
     } else {
         /* streaming */
         if ([[[_streamTypePopup selectedItem] title] isEqualToString:@"RTP"])



More information about the vlc-commits mailing list