mirror of https://github.com/mpv-player/mpv
vo_vdpau: check vdpau API return value
This commit is contained in:
parent
180e35a175
commit
7363b0439f
|
@ -568,6 +568,7 @@ static void generate_osd_part(struct vo *vo, struct sub_bitmaps *imgs)
|
||||||
&(const void *){zeros}, &(uint32_t){0},
|
&(const void *){zeros}, &(uint32_t){0},
|
||||||
&(VdpRect){0, 0, sfc->packer->used_width,
|
&(VdpRect){0, 0, sfc->packer->used_width,
|
||||||
sfc->packer->used_height});
|
sfc->packer->used_height});
|
||||||
|
CHECK_VDP_WARNING(vo, "OSD: error uploading OSD bitmap");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sfc->surface == VDP_INVALID_HANDLE)
|
if (sfc->surface == VDP_INVALID_HANDLE)
|
||||||
|
|
Loading…
Reference in New Issue