{
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();
{
#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 ) \
mrl.append( sout.psz_mux ); \
}
-
if ( trans )
{
mrl.append( ":" );
mrl = ":sout=#";
}
- if ( counter > 1 )
+ if ( counter )
{
mrl.append( "duplicate{" );
}
more = true;
}
- if ( counter > 1 )
+ if( sout.b_icecast )
+ {
+ // TODO
+ }
+
+ if ( counter )
{
mrl.append( "}" );
}