]> git.sesse.net Git - vlc/commitdiff
Sout - cleanup. and mark the TODO for the icecast MRL generation...
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 29 Oct 2007 01:15:33 +0000 (01:15 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 29 Oct 2007 01:15:33 +0000 (01:15 +0000)
modules/gui/qt4/dialogs/sout.cpp

index f9cd7fc12da795f4723ee5cd1ede46a495f6efeb..0d2df801d75e035de9c95257901533a96cac230c 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();
@@ -359,12 +359,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 +368,6 @@ void SoutDialog::updateMRL()
          mrl.append( sout.psz_mux ); \
        }
 
-
         if ( trans )
         {
             mrl.append( ":" );
@@ -383,7 +377,7 @@ void SoutDialog::updateMRL()
             mrl = ":sout=#";
         }
 
-        if ( counter > 1 )
+        if ( counter )
         {
             mrl.append( "duplicate{" );
         }
@@ -474,7 +468,12 @@ void SoutDialog::updateMRL()
             more = true;
         }
 
-        if ( counter > 1 )
+        if( sout.b_icecast )
+        {
+            // TODO
+        }
+        
+        if ( counter )
         {
             mrl.append( "}" );
         }