[vlc-devel] [PATCH 5/6] udp: don't preparse
Thomas Guillem
thomas at gllm.fr
Sun Jun 5 10:56:14 CEST 2016
---
modules/access/udp.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/access/udp.c b/modules/access/udp.c
index f1f4047..5bcd1dd 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -99,7 +99,12 @@ static void* ThreadRead( void *data );
static int Open( vlc_object_t *p_this )
{
access_t *p_access = (access_t*)p_this;
- access_sys_t *sys = malloc( sizeof( *sys ) );
+ access_sys_t *sys;
+
+ if( p_access->b_preparsing )
+ return VLC_EGENERIC;
+
+ sys = malloc( sizeof( *sys ) );
if( unlikely( sys == NULL ) )
return VLC_ENOMEM;
--
2.8.1
More information about the vlc-devel
mailing list