[vlc-commits] commit: qt4: don't add duplicate on convert if not needed (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat May 15 19:50:25 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat May 15 20:43:36 2010 +0300| [f01fe561104e3c62fe77366d3c19b77bf8776a9a] | committer: Ilkka Ollakka 

qt4: don't add duplicate on convert if not needed

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

 modules/gui/qt4/dialogs/convert.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/dialogs/convert.cpp b/modules/gui/qt4/dialogs/convert.cpp
index cd2c8a8..fc37194 100644
--- a/modules/gui/qt4/dialogs/convert.cpp
+++ b/modules/gui/qt4/dialogs/convert.cpp
@@ -135,10 +135,12 @@ void ConvertDialog::close()
             mrl.remove( '}' );
             mrl += ",deinterlace}";
         }
-        mrl += ":duplicate{";
-        if( displayBox->isChecked() ) mrl += "dst=display,";
-        mrl += "dst=std{access=file,mux=" + profile->getMux() +
-            ",dst='" + fileLine->text() + "'}";
+        mrl += ":";
+        if( displayBox->isChecked() )
+            mrl += "duplicate{dst=display,dst=";
+        mrl += "file{dst='" + fileLine->text() + "'}";
+        if( displayBox->isChecked() )
+            mrl += "}";
     }
 
     msg_Warn( p_intf, "Transcode MRL: %s", qtu( mrl ) );



More information about the vlc-commits mailing list