gstreamer/sys/kms
Guillaume Desmottes 7e38fb5422 kms: fix crash if bo allocation failed when copying to dumb buffer
If bo allocation failed we destroy the buffer and return GST_FLOW_ERROR,
but the @buffer pointer was still pointing to the address of the
destroyed buffer. gst_kms_sink_copy_to_dumb_buffer() was then trying to
unref it when bailing out causing a crash.

Leave @buffer untouched if allocation failed to fix the crash.
Also remove the check on *buffer being not NULL as gst_buffer_new()
will abort if it failed.

https://bugzilla.gnome.org/show_bug.cgi?id=787442
2017-09-08 09:26:21 -04:00
..
gstkmsallocator.c kmsallocator: add driver pitch support for planar formats 2017-07-25 09:21:16 -04:00
gstkmsallocator.h kmssink: remove dependency on libkms 2016-11-23 16:43:28 +01:00
gstkmsbufferpool.c kms: fix crash if bo allocation failed when copying to dumb buffer 2017-09-08 09:26:21 -04:00
gstkmsbufferpool.h kmssink: add plugin and sink element 2016-04-11 19:57:48 +02:00
gstkmssink.c Request minimum buffer even if need_pool is FALSE 2017-09-06 14:19:37 -04:00
gstkmssink.h kmssink: Add bus-id property 2017-08-11 09:32:08 -04:00
gstkmsutils.c kmssink: remove dependency on libkms 2016-11-23 16:43:28 +01:00
gstkmsutils.h kmssink: remove dependency on libkms 2016-11-23 16:43:28 +01:00
Makefile.am Remove plugin specific static build option 2017-05-16 14:05:52 -04:00
meson.build Rename plugin filesnames to match plugin names 2017-03-08 20:04:23 -05:00