From fb5368b159effc91c3d3a7619892c49266c19407 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Aug 2015 11:32:49 +0200 Subject: vda, videotoolbox: fix broken condition in screenshot code Fixes #2237. --- video/out/gl_hwdec_vda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/gl_hwdec_vda.c b/video/out/gl_hwdec_vda.c index 668a20f440..c257781885 100644 --- a/video/out/gl_hwdec_vda.c +++ b/video/out/gl_hwdec_vda.c @@ -87,7 +87,7 @@ static struct mp_image *download_image(struct mp_hwdec_ctx *ctx, struct mp_image *hw_image, struct mp_image_pool *swpool) { - if (hw_image->imgfmt != IMGFMT_VDA || hw_image->imgfmt != IMGFMT_VIDEOTOOLBOX) + if (hw_image->imgfmt != IMGFMT_VDA && hw_image->imgfmt != IMGFMT_VIDEOTOOLBOX) return NULL; CVPixelBufferRef pbuf = (CVPixelBufferRef)hw_image->planes[3]; -- cgit v1.2.3