mirror of https://github.com/mpv-player/mpv
vo_opengl: print error if opengl hwdec interop fails
This commit is contained in:
parent
0c6c62cb17
commit
d3a26272cd
|
@ -2542,6 +2542,8 @@ static void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi)
|
||||||
bool ok = p->hwdec->driver->map_image(p->hwdec, vimg->mpi, imgtex) >= 0;
|
bool ok = p->hwdec->driver->map_image(p->hwdec, vimg->mpi, imgtex) >= 0;
|
||||||
for (int n = 0; n < p->plane_count; n++)
|
for (int n = 0; n < p->plane_count; n++)
|
||||||
vimg->planes[n].gl_texture = ok ? imgtex[n] : -1;
|
vimg->planes[n].gl_texture = ok ? imgtex[n] : -1;
|
||||||
|
if (!ok)
|
||||||
|
MP_FATAL(p, "Mapping hardware decoded surface failed.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue