]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/sout.cpp
Qt4 - Slight string change and code cosmetic.
[vlc] / modules / gui / qt4 / dialogs / sout.cpp
index f9cd7fc12da795f4723ee5cd1ede46a495f6efeb..46a4da79ef78464e9a84cd6d51f7fb7e07f10f9a 100644 (file)
@@ -258,7 +258,7 @@ void SoutDialog::updateMRL()
 {
     sout_gui_descr_t sout;
     memset( &sout, 0, sizeof( sout_gui_descr_t ) );
-    int counter = 0;
+    unsigned int counter = 0;
 
     sout.b_local = ui.localOutput->isChecked();
     sout.b_file = ui.fileOutput->isChecked();
@@ -312,6 +312,7 @@ void SoutDialog::updateMRL()
     SMUX( WAVMux, "wav" );
     SMUX( RAWMux, "raw" );
     SMUX( FLVMux, "flv" );
+    SMUX( MKVMux, "mkv" );
 
     bool trans = false;
     bool more = false;
@@ -359,12 +360,7 @@ void SoutDialog::updateMRL()
     {
 
 #define ISMORE() if ( more ) mrl.append( "," );
-
-#define ATLEASTONE() \
-        if ( counter > 1 ) \
-        { \
-            mrl.append( "dst=" ); \
-        }
+#define ATLEASTONE() if ( counter ) mrl.append( "dst=" ); 
 
 #define CHECKMUX() \
        if( sout.psz_mux ) \
@@ -373,7 +369,6 @@ void SoutDialog::updateMRL()
          mrl.append( sout.psz_mux ); \
        }
 
-
         if ( trans )
         {
             mrl.append( ":" );
@@ -383,7 +378,7 @@ void SoutDialog::updateMRL()
             mrl = ":sout=#";
         }
 
-        if ( counter > 1 )
+        if ( counter )
         {
             mrl.append( "duplicate{" );
         }
@@ -474,7 +469,12 @@ void SoutDialog::updateMRL()
             more = true;
         }
 
-        if ( counter > 1 )
+        if( sout.b_icecast )
+        {
+            // TODO
+        }
+        
+        if ( counter )
         {
             mrl.append( "}" );
         }