Commit b2c8fe2c authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: escape demuxdump filename (refs #19841)

(cherry picked from commit 2de830a5)
parent effce728
...@@ -178,10 +178,13 @@ void ConvertDialog::close() ...@@ -178,10 +178,13 @@ void ConvertDialog::close()
for(int i = 0; i < incomingMRLs->length(); i++) for(int i = 0; i < incomingMRLs->length(); i++)
{ {
QString mrl; QString mrl;
QString newFileName;
if( dumpRadio->isChecked() ) if( dumpRadio->isChecked() )
{ {
mrl = "demux=dump :demuxdump-file=" + fileLine->text(); newFileName = fileLine->text();
newFileName.replace( QChar('\''), "\\\'" );
mrl = QString( "demux=dump :demuxdump-file='%1'" ).arg( newFileName );
} }
else else
{ {
...@@ -197,8 +200,6 @@ void ConvertDialog::close() ...@@ -197,8 +200,6 @@ void ConvertDialog::close()
mrl += "duplicate{dst=display,dst="; mrl += "duplicate{dst=display,dst=";
} }
QString newFileName;
// Only one file, use the destination provided // Only one file, use the destination provided
if(singleFileSelected) if(singleFileSelected)
{ {
......
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