diff options
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r-- | video/out/vo_wayland.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index 168763ed5c..770142ae9d 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -25,7 +25,6 @@ #include "config.h" #include "vo.h" -#include "video/vfcap.h" #include "video/mp_image.h" #include "video/sws_utils.h" #include "video/memcpy_pic.h" @@ -553,17 +552,17 @@ static void flip_page(struct vo *vo) } } -static int query_format(struct vo *vo, uint32_t format) +static int query_format(struct vo *vo, int format) { struct priv *p = vo->priv; struct supported_format *sf; wl_list_for_each_reverse(sf, &p->format_list, link) { if (sf->format.mp_format == format) - return VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_CSP_SUPPORTED; + return 1; } if (mp_sws_supported_format(format)) - return VFCAP_CSP_SUPPORTED; + return 1; return 0; } |