opencv/modules/videoio
Christopher N. Hesse 796b0fec7d videoio: gst: Fix gst assertion on null msg
According to the gstreamer docs [1], the GstMessage pointer returned by
gst_bus_pop() is nullable, meaning NULL is a valid return value.

Previously, gst_is_missing_plugin_message would throw an assert when its
message object parameter would fail the GST_IS_MESSAGE macro check,
crashing the entire process (unless running in a try-catch block of course).

Instead of relying on valid messages, check if the message object itself is
valid before passing it to other gstreamer functions.

[1] https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html#gst-bus-pop

Signed-off-by: Christopher N. Hesse <raymanfx@gmail.com>
2019-03-06 17:37:02 +01:00
..
doc Large update of videoio doc and samples following mshabunin comments 2016-09-09 18:46:11 +02:00
include/opencv2 videoio: add manual white-balance and implement it for V4L2 2018-11-09 17:14:33 +01:00
misc bindings: backport generator from OpenCV 4.x 2019-03-01 20:18:48 +00:00
perf read in gray scale mode when writing a gray scale video 2018-02-19 18:33:05 +09:00
src videoio: gst: Fix gst assertion on null msg 2019-03-06 17:37:02 +01:00
test AVFoundation on Mac: fixed frame count and unsupported format handling 2019-01-24 16:15:08 +03:00
CMakeLists.txt videoio(MSMF): backport WITH_MSMF_DXVA flag 2018-12-13 14:56:20 +03:00