isomp4: Use a function pointer for buffer splitting.
authorJan Schmidt <jan@centricular.com>
Fri, 27 Aug 2021 11:58:25 +0000 (21:58 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 19 Oct 2021 08:56:58 +0000 (08:56 +0000)
commitc47c6b4c2b173d19522d3ed93c3f31c9b61fc185
treec306bdcec0d0c046468ce4002f36dee6c0373984
parentdf403df2ca5c594fc52bc323a40dce1cdfd11c74
isomp4: Use a function pointer for buffer splitting.

Swap the `need_process` boolean check on qtdemux streams
for a direct function pointer to the splitting function,
so we can stop adding extra cases to the single growing
`gst_qtdemux_process_buffer()` function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1182>
subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
subprojects/gst-plugins-good/gst/isomp4/qtdemux.h