[vlc-commits] [Git][videolan/vlc][master] sout/standard: remove always NULL pointer usage

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 30 16:02:36 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e77ef32a by Steve Lhomme at 2023-11-30T15:24:15+00:00
sout/standard: remove always NULL pointer usage

A SAP session on standard output doesn't make much sense.

- - - - -


1 changed file:

- modules/stream_out/standard.c


Changes:

=====================================
modules/stream_out/standard.c
=====================================
@@ -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 );
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e77ef32a056f1e2ac0b1b502dcdaff15fe44b967

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e77ef32a056f1e2ac0b1b502dcdaff15fe44b967
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list