summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 15:25:03 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 15:25:03 +0000
commitc9142119d2e2e6259c6ee88ca16a7720543cc4f8 (patch)
tree7c0b973eab1f46f4f42aa9280f2015df16feb228 /libvo
parent4621209542d69949214b71b4d6f7ee5f7a6bcfa7 (diff)
downloadmpv-c9142119d2e2e6259c6ee88ca16a7720543cc4f8.tar.bz2
mpv-c9142119d2e2e6259c6ee88ca16a7720543cc4f8.tar.xz
fixed query_format (RGB24 supports OSD and is preferred)
based on patch by Alvaro Lopes <alvieboy@alvie.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9020 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_jpeg.c5
1 files changed, 3 insertions, 2 deletions
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;
}