Commit 6da562f9 authored by Marian Durkovic's avatar Marian Durkovic

fixed SAP c= line TTL issue in #standard,

--sout-udp-ttl takes precedence over -ttl
parent 6016460e
...@@ -368,7 +368,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -368,7 +368,9 @@ static int Open( vlc_object_t *p_this )
p_session->i_port = url.i_port; p_session->i_port = url.i_port;
p_session->psz_sdp = NULL; p_session->psz_sdp = NULL;
p_session->i_ttl = config_GetInt( p_sout, "ttl" ); var_Get( p_access, "sout-udp-ttl", &val );
p_session->i_ttl = val.i_int ?
val.i_int : config_GetInt( p_sout, "ttl" );
p_session->i_payload = 33; p_session->i_payload = 33;
p_session->b_rtp = strstr( psz_access, "rtp") ? 1 : 0; p_session->b_rtp = strstr( psz_access, "rtp") ? 1 : 0;
......
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