[vlc-commits] access_output: rist: remove useless initialisation

Zhao Zhili git at videolan.org
Thu Nov 15 09:19:31 CET 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue Nov 13 15:35:17 2018 +0800| [dad24f0b3858e1cfbefb2d861ed12e3add4756b4] | committer: Thomas Guillem

access_output: rist: remove useless initialisation

Since p_sys is created by vlc_obj_calloc.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dad24f0b3858e1cfbefb2d861ed12e3add4756b4
---

 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 a838c67dba..de36a744c9 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 );



More information about the vlc-commits mailing list