pngenc: output one frame only in snapshot mode
authorTim-Philipp Müller <tim@centricular.com>
Tue, 24 Oct 2023 17:12:44 +0000 (18:12 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Oct 2023 18:58:29 +0000 (18:58 +0000)
commit567e3b3d228ef45845412ef87739e5b5a28a0920
treed6fdd28fe74076e932d5071d8ba3648fd2ca294b
parentb3a413b41daab7bd216faff06529ae1c9871f371
pngenc: output one frame only in snapshot mode

In snapshot mode pngenc should output exactly one frame
and then return FLOW_EOS to upstream. If upstream sends
more input frames before shutting down, it should keep
returning FLOW_EOS but not output any more encoded frames.

After a flushing seek it should output frames again though.

Fixes #3069.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5564>
subprojects/gst-plugins-good/ext/libpng/gstpngenc.c
subprojects/gst-plugins-good/ext/libpng/gstpngenc.h