summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-27 13:32:20 +0200
committerwm4 <wm4@nowhere>2016-04-27 13:32:49 +0200
commitd3a26272cddd295eb863d4a06a899239cab78df4 (patch)
treed07d21b431f0796bc18c4444e493ce68e49c1228 /video/out/opengl/video.c
parent0c6c62cb173bb25e5be51c9147a119bb42f163ab (diff)
downloadmpv-d3a26272cddd295eb863d4a06a899239cab78df4.tar.bz2
mpv-d3a26272cddd295eb863d4a06a899239cab78df4.tar.xz
vo_opengl: print error if opengl hwdec interop fails
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 4307dcde47..de5c49da34 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -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;
for (int n = 0; n < p->plane_count; n++)
vimg->planes[n].gl_texture = ok ? imgtex[n] : -1;
+ if (!ok)
+ MP_FATAL(p, "Mapping hardware decoded surface failed.\n");
return;
}