]> git.sesse.net Git - vlc/commitdiff
Qt: Provide a clean way to not transcode in Sout dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 16 Mar 2009 00:10:55 +0000 (01:10 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 16 Mar 2009 00:10:55 +0000 (01:10 +0100)
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/ui/sout.ui

index ad41a9b20497e7605d1dc7970be3e719b93cfefd..d900e771c046cac79b19ed4750d6746efea452d0 100644 (file)
@@ -200,7 +200,7 @@ void SoutDialog::updateMRL()
     QString qs_mux = ui.profileSelect->getMux();
 
     SoutMrl smrl( ":sout=#" );
-    if( !ui.profileSelect->getTranscode().isEmpty() )
+    if( !ui.profileSelect->getTranscode().isEmpty() && ui.transcodeBox->isChecked() )
     {
         smrl.begin( ui.profileSelect->getTranscode() );
         smrl.end();
index 6dc922189479544a3a4f2b81f855d857b75a31e1..fb7d8f949456a8305b4efb2316349a6cf5dc07be 100644 (file)
           <string>_(&quot;Transcoding options&quot;)</string>
          </property>
          <layout class="QGridLayout" name="gridLayout_5">
-          <item row="0" column="0">
+          <item row="1" column="0">
            <widget class="VLCProfileSelector" name="profileSelect" native="true"/>
           </item>
+          <item row="0" column="0">
+           <widget class="QCheckBox" name="transcodeBox">
+            <property name="text">
+             <string>_(&quot;Activate Transcoding&quot;)</string>
+            </property>
+            <property name="checked">
+             <bool>true</bool>
+            </property>
+           </widget>
+          </item>
          </layout>
         </widget>
        </item>