1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00
Files
opencv/modules
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
..
2018-09-07 20:33:52 +09:00
2018-09-07 20:33:52 +09:00
2018-09-07 20:33:52 +09:00
2018-09-07 20:33:52 +09:00
2019-03-03 16:40:43 +00:00
2019-01-14 22:21:21 +03:00
2019-03-05 14:47:04 +03:00
2019-01-14 22:21:21 +03:00
2019-02-18 17:15:05 +01:00