From c9142119d2e2e6259c6ee88ca16a7720543cc4f8 Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 19 Jan 2003 15:25:03 +0000 Subject: fixed query_format (RGB24 supports OSD and is preferred) based on patch by Alvaro Lopes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9020 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_jpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index 0fcd5e03e3..78823b572a 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -208,10 +208,11 @@ static uint32_t query_format(uint32_t format) case IMGFMT_IYUV: case IMGFMT_I420: case IMGFMT_YV12: - case IMGFMT_RGB|24: case IMGFMT_BGR|24: case IMGFMT_BGR|32: - return 1; + return VFCAP_CSP_SUPPORTED; + case IMGFMT_RGB|24: + return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; } return 0; } -- cgit v1.2.3