Commit f61dd9ff authored by Ilkka Ollakka's avatar Ilkka Ollakka

don't add empty mux= in sout-chain if no mux has been selected

parent 5f7bf43c
......@@ -366,6 +366,13 @@ COUNT()
mrl.append( "dst=" ); \
}
#define CHECKMUX() \
if( sout.psz_mux ) \
{ \
mrl.append( ",mux=");\
mrl.append( sout.psz_mux ); \
}
if ( trans )
{
......@@ -393,8 +400,8 @@ COUNT()
{
ISMORE();
ATLEASTONE()
mrl.append( "std{access=file,mux=" );
mrl.append( sout.psz_mux );
mrl.append( "std{access=file" );
CHECKMUX();
mrl.append( ",dst=" );
mrl.append( sout.psz_file );
mrl.append( "}" );
......@@ -405,8 +412,8 @@ COUNT()
{
ISMORE();
ATLEASTONE()
mrl.append( "std{access=http,mux=" );
mrl.append( sout.psz_mux );
mrl.append( "std{access=http" );
CHECKMUX();
mrl.append( ",dst=" );
mrl.append( sout.psz_http );
mrl.append( ":" );
......@@ -419,8 +426,8 @@ COUNT()
{
ISMORE();
ATLEASTONE()
mrl.append( "std{access=mmsh,mux=" );
mrl.append( sout.psz_mux );
mrl.append( "std{access=mmsh" );
CHECKMUX();
mrl.append( ",dst=" );
mrl.append( sout.psz_mms );
mrl.append( ":" );
......@@ -433,8 +440,8 @@ COUNT()
{
ISMORE();
ATLEASTONE()
mrl.append( "rtp{mux=" );
mrl.append( sout.psz_mux );
mrl.append( "rtp{" );
CHECKMUX();
mrl.append( ",dst=" );
mrl.append( sout.psz_rtp );
mrl.append( ":" );
......@@ -447,8 +454,8 @@ COUNT()
{
ISMORE();
ATLEASTONE()
mrl.append( "std{access=udp,mux=" );
mrl.append( sout.psz_mux );
mrl.append( "std{access=udp" );
CHECKMUX();
mrl.append( ",dst=" );
mrl.append( sout.psz_udp );
mrl.append( ":" );
......@@ -473,6 +480,8 @@ COUNT()
}
}
#undef CHECKMUX
if ( sout.b_all_es )
mrl.append( ":sout-all" );
......
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