vlc | branch: master | Thomas Guillem <[email protected]> | Sat Jun 4 17:46:47 2016 +0200| [967cd8e2d24a81848c5fd363a0db7656d9a654d8] | committer: Thomas Guillem
udp: don't preparse > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=967cd8e2d24a81848c5fd363a0db7656d9a654d8 --- 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
