gstreamer/gst/imagefreeze
Sebastian Dröge e5feaa76ed imagefreeze: Handle flushing correctly
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>
2020-05-06 08:06:33 +00:00
..
gstimagefreeze.c imagefreeze: Handle flushing correctly 2020-05-06 08:06:33 +00:00
gstimagefreeze.h imagefreeze: Handle flushing correctly 2020-05-06 08:06:33 +00:00
meson.build doc: Port documentation to hotdoc 2019-05-13 11:34:56 -04:00