]> git.sesse.net Git - vlc/commitdiff
qt4: don't add duplicate on convert if not needed
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 15 May 2010 17:43:36 +0000 (20:43 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 15 May 2010 17:44:05 +0000 (20:44 +0300)
modules/gui/qt4/dialogs/convert.cpp

index cd2c8a8ab59466955bcc29668c1e838ba451fe42..fc371948380738e0d177519dff74b956ffbd17f4 100644 (file)
@@ -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 ) );