diff options
author | wm4 <wm4@nowhere> | 2014-11-07 09:28:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-07 09:28:47 +0100 |
commit | 68ad0fce1f84c2c60a662588d432f7d54811a223 (patch) | |
tree | d6fe6ac9d4aa869ae72b57263648858ec22e76f9 /video/out/vo_vaapi.c | |
parent | a54b99d1e5871d7962956a67411f17d9fdbe8680 (diff) | |
download | mpv-68ad0fce1f84c2c60a662588d432f7d54811a223.tar.bz2 mpv-68ad0fce1f84c2c60a662588d432f7d54811a223.tar.xz |
vo_vaapi: fix broken error checks
Diffstat (limited to 'video/out/vo_vaapi.c')
-rw-r--r-- | video/out/vo_vaapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index 89e22d8bbf..b51337c7d9 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -382,7 +382,7 @@ static void draw_osd_cb(void *pctx, struct sub_bitmaps *imgs) struct vaapi_osd_image *img = &part->image; struct mp_image vaimg; - if (va_image_map(p->mpvaapi, &img->image, &vaimg) < 0) + if (!va_image_map(p->mpvaapi, &img->image, &vaimg)) goto error; // Clear borders and regions uncovered by sub-bitmaps @@ -403,7 +403,7 @@ static void draw_osd_cb(void *pctx, struct sub_bitmaps *imgs) vaimg.stride[0], sub->stride); } - if (va_image_unmap(p->mpvaapi, &img->image) < 0) + if (!va_image_unmap(p->mpvaapi, &img->image)) goto error; part->subpic = (struct vaapi_subpic) { |