mxfdemux: don't error out if VANC track only contains packets we don't handle
authorTim-Philipp Müller <tim@centricular.com>
Thu, 13 Jan 2022 11:31:55 +0000 (11:31 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 13 Jan 2022 11:34:37 +0000 (11:34 +0000)
commitcab0eaed1cb9bbb2204c6d02f1b33d9bec53187f
tree9a182cef3693a5c3b09a204ebfabe10914a6f5b9
parent05ee44b62be322b664078cf8238b74f7267127ae
mxfdemux: don't error out if VANC track only contains packets we don't handle

If the VANC track does contain packets, but we skip over all packets, just
treat it the same as if there hadn't been any packets at all and send a
GAP event instead of erroring out with "Failed to handle essence element".

We would error out because when we reach the end of the loop without having
found a closed caption packet the flow return variable is still FLOW_ERROR
which is what it has been initialised to.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1518>
subprojects/gst-plugins-bad/gst/mxf/mxfvanc.c