vaapisink: ignore frame if its upload failed
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 13 Jan 2016 18:17:02 +0000 (19:17 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 14 Jan 2016 10:31:17 +0000 (11:31 +0100)
commit8f77d541039759a82ca65b1bcd65ff1406eca34a
tree06385aa965856ac939dd24c44b243da8a47d5004
parent1a84348e766220831aa26bfa50b8aeefec0ebdd4
vaapisink: ignore frame if its upload failed

When gst_vaapi_plugin_base_get_input_buffer() fail to copy the input buffer
into a VAAPI buffer, the return value is GST_FLOW_NOT_SUPPORTED, and it was
ignored by the vaapisink, leading to a segmentation fault.

This patch ignores the frame that generated the GST_FLOW_NOT_SUPPORTED
returned by gst_vaapi_plugin_base_get_input_buffer(), avoiding the
segmentation fault, but doing and effort to continue rendering. This is
the same behavior of ximagesink.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=759332
gst/vaapi/gstvaapisink.c