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:
@":demuxdump-file=%@",
[self.fileTextField stringValue]], nil];
@":demuxdump-file=\"%@\"",
filename_string], nil];
return;
} else
[mrl_string appendFormat:@"standard{mux=%@,access=file{no-overwrite},dst=\"%@\"}",
mux_string,
[self.fileTextField stringValue]];
filename_string];
}
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