1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-14 02:51:26 +00:00

vo_vdpau: check vdpau API return value

This commit is contained in:
wm4 2015-03-23 18:12:05 +01:00
parent 180e35a175
commit 7363b0439f

View File

@ -568,6 +568,7 @@ static void generate_osd_part(struct vo *vo, struct sub_bitmaps *imgs)
&(const void *){zeros}, &(uint32_t){0},
&(VdpRect){0, 0, sfc->packer->used_width,
sfc->packer->used_height});
CHECK_VDP_WARNING(vo, "OSD: error uploading OSD bitmap");
}
if (sfc->surface == VDP_INVALID_HANDLE)