[vlc-devel] [PATCH 3/3] access_output: rist: set to zero is no-op since p_sys is created by vlc_obj_calloc

Zhao Zhili quinkblack at foxmail.com
Tue Nov 13 08:35:17 CET 2018


---
 modules/access_output/rist.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/access_output/rist.c b/modules/access_output/rist.c
index a838c67..de36a74 100644
--- a/modules/access_output/rist.c
+++ b/modules/access_output/rist.c
@@ -677,10 +677,6 @@ static int Open( vlc_object_t *p_this )
     if( unlikely( p_sys == NULL ) )
         return VLC_ENOMEM;
 
-    p_sys->rtp_counter = 0;
-    p_sys->last_rtcp_tx = 0;
-    memset(p_sys->receiver_name, 0, MAX_CNAME);
-
     int i_dst_port = RIST_DEFAULT_PORT;
     char *psz_dst_addr;
     char *psz_parser = psz_dst_addr = strdup( p_access->psz_path );
-- 
2.9.5



More information about the vlc-devel mailing list