mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 04:36:36 +08:00
Open Source Computer Vision Library
796b0fec7d
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> |
||
---|---|---|
.github | ||
3rdparty | ||
apps | ||
cmake | ||
data | ||
doc | ||
include | ||
modules | ||
platforms | ||
samples | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: http://opencv.org
- Docs: http://docs.opencv.org/master/
- Q&A forum: http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.