Commit 93b0b179 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Sout - cleanup. and mark the TODO for the icecast MRL generation...

parent 7589b4c2
......@@ -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( "}" );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment