summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorksorim <ksorim@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-29 09:52:21 +0000
committerksorim <ksorim@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-29 09:52:21 +0000
commit45bad49c57ea680d9b4159a6ebd7933f844f9d73 (patch)
treec15a1040ff2137cc7fec9fdeb721ddd2339cc496 /libvo
parentee2ad205484898bc96b12964de2eb41c3c914bcb (diff)
downloadmpv-45bad49c57ea680d9b4159a6ebd7933f844f9d73.tar.bz2
mpv-45bad49c57ea680d9b4159a6ebd7933f844f9d73.tar.xz
Use new style query_formats flags. Fixes bug with flip.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5895 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_sdl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 43d6a3b5dc..15e287a042 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -114,6 +114,7 @@
#include "fastmemcpy.h"
#include "sub.h"
#include "aspect.h"
+#include "libmpcodecs/vfcap.h"
#ifdef HAVE_X11
#include <X11/Xlib.h>
@@ -1583,7 +1584,8 @@ query_format(uint32_t format)
case IMGFMT_YUY2:
case IMGFMT_UYVY:
case IMGFMT_YVYU:
- return 0x6; // hw supported & osd
+ return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_OSD |
+ VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN;
case IMGFMT_RGB15:
case IMGFMT_BGR15:
case IMGFMT_RGB16:
@@ -1592,7 +1594,7 @@ query_format(uint32_t format)
case IMGFMT_BGR24:
case IMGFMT_RGB32:
case IMGFMT_BGR32:
- return 0x5; // hw supported w/conversion & osd
+ return VFCAP_CSP_SUPPORTED | VFCAP_OSD | VFCAP_FLIP;
}
return 0;
}