Skip to content
Snippets Groups Projects
Commit e77ef32a authored by Steve Lhomme's avatar Steve Lhomme
Browse files

sout/standard: remove always NULL pointer usage

A SAP session on standard output doesn't make much sense.
parent 8327d888
No related branches found
No related tags found
1 merge request!4612sout/standard: remove always NULL pointer usage
Pipeline #411664 passed with stages
in 28 minutes and 55 seconds
......@@ -101,7 +101,6 @@ static const char *const ppsz_sout_options[] = {
typedef struct
{
sout_mux_t *p_mux;
session_descriptor_t *p_session;
bool synchronous;
} sout_stream_sys_t;
......@@ -308,7 +307,6 @@ static int Open( vlc_object_t *p_this )
ret = VLC_ENOMEM;
goto end;
}
p_sys->p_session = NULL;
if( fixAccessMux( p_stream, &psz_mux, &psz_access, psz_url ) )
goto end;
......@@ -367,9 +365,6 @@ static void Close( sout_stream_t *p_stream )
sout_stream_sys_t *p_sys = p_stream->p_sys;
sout_access_out_t *p_access = p_sys->p_mux->p_access;
if( p_sys->p_session != NULL )
sout_AnnounceUnRegister( p_stream, p_sys->p_session );
sout_MuxDelete( p_sys->p_mux );
sout_AccessOutDelete( p_access );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment