mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 11:26:39 +00:00
e5feaa76ed
First of all get rid of the atomic seeking boolean, which was only ever set and never read. Replace it with a flushing boolean that is used in the loop function to distinguish no buffer because of flushing and no buffer because of an error as otherwise we could end up in a GST_FLOW_ERROR case during flushing. Also only reset the state of imagefreeze in flush-stop when all processing is stopped instead of doing it as part of flush-start. And last, get a reference to the imagefreeze buffer in the loop function in the very beginning and work from that as otherwise it could in theory be replaced or set to NULL in the meantime as we release and re-take the mutex a couple of times during the loop function. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/580> |
||
---|---|---|
.. | ||
gstimagefreeze.c | ||
gstimagefreeze.h | ||
meson.build |