From 8126f220e715b122fb6824c0b6527edfe363ce0e Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 20 May 2002 02:27:10 +0000 Subject: [PATCH] do not pass the flip flag to vo - maybe it support flipping just report no support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6138 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_flip.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libmpcodecs/vf_flip.c b/libmpcodecs/vf_flip.c index f92309f7ad..71b2a58f01 100644 --- a/libmpcodecs/vf_flip.c +++ b/libmpcodecs/vf_flip.c @@ -16,6 +16,13 @@ struct vf_priv_s { //===========================================================================// +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 void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ //===========================================================================// 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;