glimagesink: Show error when video frame is not mapped.

Adds more meaningful error than
"Failed to convert multiview video buffer", which is always used
when prepare_next_buffer() fails in gst_glimage_sink_prepare().

https://bugzilla.gnome.org/show_bug.cgi?id=743345
This commit is contained in:
Lubosz Sarnecki 2015-11-13 17:09:13 +01:00 committed by Tim-Philipp Müller
parent 376b1eb262
commit dbcea228b2

View file

@ -1407,6 +1407,7 @@ prepare_next_buffer (GstGLImageSink * glimage_sink)
if (!gst_video_frame_map (&gl_frame, info, next_buffer,
GST_MAP_READ | GST_MAP_GL)) {
gst_buffer_unref (next_buffer);
GST_ERROR ("Failed to map video frame.");
goto fail;
}