[vlc-commits] Qt: use arg syntax in transcoding

Francois Cartegnie git at videolan.org
Mon Feb 26 13:50:02 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Feb 26 13:14:38 2018 +0100| [fa877b23e7482259585162b288d3de996361ba3a] | committer: Francois Cartegnie

Qt: use arg syntax in transcoding

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

 modules/gui/qt/dialogs/convert.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/dialogs/convert.cpp b/modules/gui/qt/dialogs/convert.cpp
index 7ae9be5d92..c4ef6a3717 100644
--- a/modules/gui/qt/dialogs/convert.cpp
+++ b/modules/gui/qt/dialogs/convert.cpp
@@ -235,9 +235,8 @@ void ConvertDialog::close()
 
             newFileName.replace( QChar('\''), "\\\'" );
 
-            mrl += "std{access=file{no-overwrite},mux=" + profile->getMux()
-                 + ",dst='" + newFileName
-                 + "'}";
+            mrl += QString("std{access=file{no-overwrite},mux=%1,dst='%2'}")
+                           .arg( profile->getMux() ).arg( newFileName );
             if( displayBox->isChecked() )
                 mrl += "}";
         }



More information about the vlc-commits mailing list