]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/bluescreen.c
Add vlclua_dir_list_free to free list created by vlclua_dir_list and use it.
[vlc] / modules / video_filter / bluescreen.c
index 83ba1cc0ec9b423ee3acaf7361344272763e9811..2499f55d9b016180d56d29c1a85010dd8182f00e 100644 (file)
@@ -29,7 +29,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
 
@@ -97,7 +97,7 @@ vlc_module_begin();
                             false );
 vlc_module_end();
 
-static const char *ppsz_filter_options[] = {
+static const char *const ppsz_filter_options[] = {
     "u", "v", "ut", "vt", NULL
 };
 
@@ -124,10 +124,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
     if( p_filter->p_sys == NULL )
-    {
-        msg_Err( p_filter, "out of memory" );
         return VLC_ENOMEM;
-    }
     p_sys = p_filter->p_sys;
 
     config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,