* Copyright (C) 2007 the VideoLAN team
* $Id$
*
- * Author: Søren Bøg <avacore@videolan.org>
+ * Author: Soren Bog <avacore@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <vlc_sout.h>
#include <vlc_vout.h>
#include <vlc_filter.h>
#define OUTPUT_LONGTEXT N_("FIFO which will be written to for responses")
vlc_module_begin();
- set_description( _("Dynamic video overlay") );
- set_shortname( _("Overlay" ));
+ set_description( N_("Dynamic video overlay") );
+ set_shortname( N_("Overlay" ));
set_category( CAT_VIDEO );
set_subcategory( SUBCAT_VIDEO_VFILTER );
set_capability( "sub filter", 0 );
set_callbacks( Create, Destroy );
vlc_module_end();
-static const char *ppsz_filter_options[] = {
+static const char *const ppsz_filter_options[] = {
"input", "output", NULL
};
/* 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;
BufferInit( &p_sys->input );
*pp_region = NULL;
break;
}
- p_filter->p_libvlc->pf_memcpy( (*pp_region)->p_style,
- &p_overlay->fontstyle,
- sizeof(struct text_style_t) );
+ vlc_memcpy( (*pp_region)->p_style, &p_overlay->fontstyle,
+ sizeof(struct text_style_t) );
}
else
{