[vlc-devel] [PATCH 2/3] access_output: rist: fix error handling
Zhao Zhili
quinkblack at foxmail.com
Tue Nov 13 08:35:16 CET 2018
Mutexes haven't been initialized yet and Clean will call vlc_mutex_destroy.
---
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 feff01f..a838c67 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, ']' );
--
2.9.5
More information about the vlc-devel
mailing list