Fix -vf format and -vf noformat to work with slices.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 5 Jun 2010 17:45:35 +0000 (17:45 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 5 Jun 2010 17:45:35 +0000 (17:45 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@31330 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpcodecs/vf_format.c
libmpcodecs/vf_noformat.c

index fa511e9..a8be4cd 100644 (file)
@@ -48,6 +48,7 @@ static int query_format(struct vf_instance *vf, unsigned int fmt){
 
 static int vf_open(vf_instance_t *vf, char *args){
     vf->query_format=query_format;
+    vf->draw_slice=vf_next_draw_slice;
     vf->default_caps=0;
     return 1;
 }
index f92014f..037800c 100644 (file)
@@ -48,6 +48,7 @@ static int query_format(struct vf_instance *vf, unsigned int fmt){
 
 static int vf_open(vf_instance_t *vf, char *args){
     vf->query_format=query_format;
+    vf->draw_slice=vf_next_draw_slice;
     vf->default_caps=0;
     return 1;
 }