filter: separate owner structure from the filter itself
[vlc.git] / modules / video_filter / canvas.c
index 6c6ea8a..0abbd58 100644 (file)
@@ -370,18 +370,18 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
  *****************************************************************************/
 static picture_t *video_new( filter_t *p_filter )
 {
-    return filter_NewPicture( (filter_t*)p_filter->p_owner );
+    return filter_NewPicture( p_filter->owner.sys );
 }
 
 static void video_del( filter_t *p_filter, picture_t *p_pic )
 {
-    return filter_DeletePicture( (filter_t*)p_filter->p_owner, p_pic );
+    return filter_DeletePicture( p_filter->owner.sys, p_pic );
 }
 
 static int alloc_init( filter_t *p_filter, void *p_data )
 {
-    p_filter->p_owner = p_data;
-    p_filter->pf_video_buffer_new = video_new;
-    p_filter->pf_video_buffer_del = video_del;
+    p_filter->owner.sys = p_data;
+    p_filter->owner.video.buffer_new = video_new;
+    p_filter->owner.video.buffer_del = video_del;
     return VLC_SUCCESS;
 }