changeset 6137:6253fc19afb1

do not pass the flip flag to vo - maybe it support flipping just report no support
author arpi
date Mon, 20 May 2002 02:27:10 +0000
parents 7f6b58d3b6d5
children 523014df7d32
files libmpcodecs/vf_flip.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_flip.c	Mon May 20 01:24:09 2002 +0000
+++ b/libmpcodecs/vf_flip.c	Mon May 20 02:27:10 2002 +0000
@@ -16,6 +16,13 @@
 
 //===========================================================================//
 
+static int config(struct vf_instance_s* vf,
+        int width, int height, int d_width, int d_height,
+	unsigned int flags, unsigned int outfmt){
+    flags&=~8; // remove the FLIP flag
+    return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
+}
+
 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
     if(mpi->flags&MP_IMGFLAG_ACCEPT_STRIDE){
 	// try full DR !
@@ -66,6 +73,7 @@
 //===========================================================================//
 
 static int open(vf_instance_t *vf, char* args){
+    vf->config=config;
     vf->get_image=get_image;
     vf->put_image=put_image;
     vf->default_reqs=VFCAP_ACCEPT_STRIDE;