vda, videotoolbox: fix broken condition in screenshot code

Fixes #2237.
This commit is contained in:
wm4 2015-08-23 11:32:49 +02:00
parent 5c3196d20b
commit fb5368b159
1 changed files with 1 additions and 1 deletions

View File

@ -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];