diff options
-rw-r--r-- | video/out/vo_x11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index ee20f12c38..f8a85d3e13 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -350,7 +350,8 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) static int query_format(struct vo *vo, int format) { - if (sws_isSupportedInput(imgfmt2pixfmt(format))) + struct priv *p = vo->priv; + if (mp_sws_supports_formats(p->sws, IMGFMT_RGB0, format)) return 1; return 0; } |