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() ...@@ -258,7 +258,7 @@ void SoutDialog::updateMRL()
{ {
sout_gui_descr_t sout; sout_gui_descr_t sout;
memset( &sout, 0, sizeof( sout_gui_descr_t ) ); memset( &sout, 0, sizeof( sout_gui_descr_t ) );
int counter = 0; unsigned int counter = 0;
sout.b_local = ui.localOutput->isChecked(); sout.b_local = ui.localOutput->isChecked();
sout.b_file = ui.fileOutput->isChecked(); sout.b_file = ui.fileOutput->isChecked();
...@@ -359,12 +359,7 @@ void SoutDialog::updateMRL() ...@@ -359,12 +359,7 @@ void SoutDialog::updateMRL()
{ {
#define ISMORE() if ( more ) mrl.append( "," ); #define ISMORE() if ( more ) mrl.append( "," );
#define ATLEASTONE() if ( counter ) mrl.append( "dst=" );
#define ATLEASTONE() \
if ( counter > 1 ) \
{ \
mrl.append( "dst=" ); \
}
#define CHECKMUX() \ #define CHECKMUX() \
if( sout.psz_mux ) \ if( sout.psz_mux ) \
...@@ -373,7 +368,6 @@ void SoutDialog::updateMRL() ...@@ -373,7 +368,6 @@ void SoutDialog::updateMRL()
mrl.append( sout.psz_mux ); \ mrl.append( sout.psz_mux ); \
} }
if ( trans ) if ( trans )
{ {
mrl.append( ":" ); mrl.append( ":" );
...@@ -383,7 +377,7 @@ void SoutDialog::updateMRL() ...@@ -383,7 +377,7 @@ void SoutDialog::updateMRL()
mrl = ":sout=#"; mrl = ":sout=#";
} }
if ( counter > 1 ) if ( counter )
{ {
mrl.append( "duplicate{" ); mrl.append( "duplicate{" );
} }
...@@ -474,7 +468,12 @@ void SoutDialog::updateMRL() ...@@ -474,7 +468,12 @@ void SoutDialog::updateMRL()
more = true; more = true;
} }
if ( counter > 1 ) if( sout.b_icecast )
{
// TODO
}
if ( counter )
{ {
mrl.append( "}" ); 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