mpeg4videoparse: fix criticals trying to insert configs that don't exist yet
authorTim-Philipp Müller <tim@centricular.com>
Thu, 28 Oct 2021 16:41:54 +0000 (17:41 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 28 Oct 2021 16:49:03 +0000 (17:49 +0100)
commit9d5b23ff588dfa2b3545bdf88a164bd4b3d47a02
treebd66c09af646569c5a3d7aec9c807d761064e210
parentf6ed40c93a55544482aba04bbc588b586183a967
mpeg4videoparse: fix criticals trying to insert configs that don't exist yet

With mpeg4videoparse drop=false config-interval=N|-1 we might be
trying to insert a config before we have actually received one,
in which case we'll try to map a NULL buffer which will generate
lots of criticals.

Fixes #855

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1265>
subprojects/gst-plugins-bad/gst/videoparsers/gstmpeg4videoparse.c