Commit 92ac7be4 authored by hartman's avatar hartman
Browse files

* Fix the two SAP issues reported by Marian Durkovic.

parent c978f72d
......@@ -372,6 +372,12 @@ static int OpenDemux( vlc_object_t *p_this )
char *psz_sdp = NULL;
sdp_t *p_sdp = NULL;
if( !var_CreateGetInteger( p_demux, "sap-parse" ) )
{
/* We want livedotcom module to parse this SDP file */
return VLC_EGENERIC;
}
/* Probe for SDP */
if( p_demux->s )
{
......
......@@ -1283,7 +1283,7 @@ static int SapSetup( sout_stream_t *p_stream )
p_method->i_type = METHOD_TYPE_SAP;
p_method->psz_address = NULL; /* FIXME */
if( p_sys->i_es > 0 && p_sys->psz_sdp && *p_sys->psz_sdp )
if( ( p_sys->i_es > 0 || p_sys->p_mux ) && p_sys->psz_sdp && *p_sys->psz_sdp )
{
p_sys->p_session = sout_AnnounceRegisterSDP( p_sout, p_sys->psz_sdp,
p_method );
......
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