tsmux: Simplify tsmux_section_write_packet
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 16 Oct 2023 22:57:56 +0000 (00:57 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 Oct 2023 08:53:19 +0000 (08:53 +0000)
commit77429e4096ef89eca804459aee9ca39d221ff256
tree03ebd819f314763beb306259a51ff8d68f238349
parentc205086f2b47ccbf6d8a4779e8f81662d4fe07df
tsmux: Simplify tsmux_section_write_packet

- Don't try to make the parameters match `GHFunc`. Use a dedicated
  callback for `g_hash_table_foreach`.
- Don't try to be clever with buffer memories. We're allocating a full
  packet anyway, might as well memcpy and save on a lot of complexity.

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