tsmux: tsmux_packet_out should always consume its buffer
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 16 Oct 2023 22:54:38 +0000 (00:54 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 Oct 2023 08:53:19 +0000 (08:53 +0000)
commitc205086f2b47ccbf6d8a4779e8f81662d4fe07df
tree1ca0a34120e3f961e2d7409eb4a86ffc4954bf82
parent6198c4b8a10149e09376d71b6e1d4ba4a8233d2e
tsmux: tsmux_packet_out should always consume its buffer

Consuming the buffer only when successful is an antipattern and easily
leads to leaks.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5516>
subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c