]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/canvas.c
Fixed YV12 and added YV9 support to our swscale wrapper.
[vlc] / modules / video_filter / canvas.c
index ce5573a35a51b11c6e19b54a9528cdf6161bffc2..03872458f402c42ee850b1186cdda6ceb2c80ead 100644 (file)
@@ -94,6 +94,7 @@ static int alloc_init( filter_t *, void * );
 #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-"
 
@@ -102,8 +103,9 @@ static int alloc_init( filter_t *, void * );
  *****************************************************************************/
 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 )
@@ -372,7 +374,7 @@ static void video_del( filter_t *p_filter, picture_t *p_pic )
 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;
 }