mpeg2enc: Only allow 1 pending frame for encoding
authorJan Schmidt <jan@centricular.com>
Mon, 30 Aug 2021 13:26:39 +0000 (23:26 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 6 Sep 2021 14:14:50 +0000 (14:14 +0000)
commit640aad2b464d5aef0f38ef3405660f971f8221c4
treebb9dccb2c7acf1f0c8dbe385dd748c95fd1577cb
parentcd3aa029d6b85405b2318be109bacaabe6522d1a
mpeg2enc: Only allow 1 pending frame for encoding

Having an unlimited input queue is very bad if the
encoder can't run at real-time. Eventually it will
consume all RAM. I don't really see any reason to
have more than 1 outstanding encoded frame, so
remove the queue and limit things to 1 pending frame.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2499>
ext/mpeg2enc/gstmpeg2enc.cc
ext/mpeg2enc/gstmpeg2enc.hh
ext/mpeg2enc/gstmpeg2encpicturereader.cc