Commit 82547ae9 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Marvin Scholz

macosx: escape sout filenames (fix #19841)

parent 6bbc6b6c
......@@ -295,17 +295,20 @@
else if ([mux isEqualToString: @"Raw"]) mux_string = @"raw";
else mux_string = @"ts";
NSString *filename_string =
[[self.fileTextField stringValue] stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""];
if ([mode isEqualToString: _NS("File")]) {
if ([self.dumpCheckbox state] == NSOnState) {
_soutMRL = [NSArray arrayWithObjects:@":demux=dump",
[NSString stringWithFormat:
[self.fileTextField stringValue]], nil];
filename_string], nil];
} else
[mrl_string appendFormat:@"standard{mux=%@,access=file{no-overwrite},dst=\"%@\"}",
[self.fileTextField stringValue]];
else if ([mode isEqualToString: _NS("Stream")]) {
mode = [self.streamTypePopup titleOfSelectedItem];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment