[vlc-commits] access_output: rist: fix error handling

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


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

access_output: rist: fix error handling

Mutexes haven't been initialized yet and Clean will call vlc_mutex_destroy.

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

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

 modules/access_output/rist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access_output/rist.c b/modules/access_output/rist.c
index feff01f3c9..a838c67dba 100644
--- a/modules/access_output/rist.c
+++ b/modules/access_output/rist.c
@@ -685,7 +685,7 @@ static int Open( vlc_object_t *p_this )
     char *psz_dst_addr;
     char *psz_parser = psz_dst_addr = strdup( p_access->psz_path );
     if( !psz_dst_addr )
-        goto failed;
+        return VLC_ENOMEM;
 
     if ( psz_parser[0] == '[' )
         psz_parser = strchr( psz_parser, ']' );



More information about the vlc-commits mailing list