[vlc-devel] commit: Qt4: profile Editor, correctly select the Muxer ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri May 1 16:46:43 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri May  1 16:46:05 2009 +0200| [5a39c572acce910d6d89479e75fcf74f0666250b] | committer: Jean-Baptiste Kempf 

Qt4: profile Editor, correctly select the Muxer

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

 .../gui/qt4/components/sout/profile_selector.cpp   |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index 7d4591c..d66907c 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -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() );




More information about the vlc-devel mailing list