]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/gvp.c
Remove MALLOC_(VOID|ERR). (and use calloc instead of malloc+memset)
[vlc] / modules / demux / playlist / gvp.c
index 19d6d3702b44b5425350b0e7753e4b2672d2160e..e66b95fc4a934b284ec1915bbf106c362785ba8b 100644 (file)
@@ -96,7 +96,9 @@ int Import_GVP( vlc_object_t *p_this )
     STANDARD_DEMUX_INIT_MSG(  "using Google Video Playlist (gvp) import" );
     p_demux->pf_control = Control;
     p_demux->pf_demux = Demux;
-    MALLOC_ERR( p_demux->p_sys, demux_sys_t );
+    p_demux->p_sys = malloc( sizeof( demux_sys_t ) );
+    if( !p_demux->p_sys )
+        return VLC_ENOMEM;
 
     return VLC_SUCCESS;
 }