]> git.sesse.net Git - vlc/commitdiff
Qt4: profile Editor, correctly select the Muxer
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 May 2009 14:46:05 +0000 (16:46 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 May 2009 14:46:32 +0000 (16:46 +0200)
modules/gui/qt4/components/sout/profile_selector.cpp

index 7d4591c76b21151f7a0374b088a967084141c01d..d66907c4201db6ec73fe15057eaad02fe8e107aa 100644 (file)
@@ -318,6 +318,21 @@ void VLCProfileEditor::fillProfile( const QString& qs )
     if( options.size() < 16 )
         return;
 
+    const QString mux = options[0];
+#define CHECKMUX( button, text) if( text == mux ) ui.button->setChecked( true ); else
+    CHECKMUX( PSMux, "ps" )
+    CHECKMUX( TSMux, "ts" )
+    CHECKMUX( MPEG1Mux, "mpeg1" )
+    CHECKMUX( OggMux, "ogg" )
+    CHECKMUX( ASFMux, "asf" )
+    CHECKMUX( MOVMux, "mp4" )
+    CHECKMUX( WAVMux, "wav" )
+    CHECKMUX( RAWMux, "raw" )
+    CHECKMUX( FLVMux, "flv" )
+    CHECKMUX( MKVMux, "mkv" )
+    CHECKMUX( AVIMux, "avi" )
+    CHECKMUX( MJPEGMux, "mjpg" ){}
+
     ui.keepVideo->setChecked( !options[1].toInt() );
     ui.transcodeVideo->setChecked( ( options[4] != "none" ) );
     ui.keepAudio->setChecked( !options[2].toInt() );