#define PADD_LONGTEXT N_( \
"If enabled, video will be padded to fit in canvas after scaling. " \
"Otherwise, video will be cropped to fix in canvas after scaling." )
+#define CANVAS_HELP N_( "Automatically resize and pad a video" )
#define CFG_PREFIX "canvas-"
*****************************************************************************/
vlc_module_begin ()
set_shortname( N_("Canvas") )
- set_description( N_("Automatically resize and pad a video") )
+ set_description( N_("Canvas video filter") )
set_capability( "video filter2", 0 )
+ set_help( CANVAS_HELP )
set_callbacks( Activate, Destroy )
set_category( CAT_VIDEO )
static int alloc_init( filter_t *p_filter, void *p_data )
{
p_filter->p_owner = p_data;
- p_filter->pf_vout_buffer_new = video_new;
- p_filter->pf_vout_buffer_del = video_del;
+ p_filter->pf_video_buffer_new = video_new;
+ p_filter->pf_video_buffer_del = video_del;
return VLC_SUCCESS;
}