Jan Alexander Steffens (heftig)
77429e4096
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 >
2023-10-20 08:53:19 +00:00
Jan Alexander Steffens (heftig)
c205086f2b
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 >
2023-10-20 08:53:19 +00:00
Jan Alexander Steffens (heftig)
6198c4b8a1
tsmux: Don't memset in pad_stream when writing a PCR packet
...
tsmux_write_ts_header will write a stuffing adaptation field, so we
don't need to prefill the buffer.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5516 >
2023-10-20 08:53:19 +00:00
Jan Alexander Steffens (heftig)
4e9cb5d8eb
tsmux: Move out parameters of tsmux_write_ts_header
...
Move them to the end of the parameter list and also allow passing NULLs
to ignore the payload information, but assert that the payload length is
zero in this case.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5516 >
2023-10-20 08:53:19 +00:00
Jan Alexander Steffens (heftig)
a65035ac25
tsmux: Fix two more uses of gst_buffer_map
...
The buffers should be used for writing.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5516 >
2023-10-20 08:53:19 +00:00
Jan Alexander Steffens (heftig)
61c62919a7
tsmux: Fix error handling in pad_stream
...
Don't leak the map or the buffer if we encounter an error.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5513 >
2023-10-19 23:22:33 +01:00
Jan Alexander Steffens (heftig)
5e78ef7a10
tsmux: Fill padding packets with stuffing bytes
...
Instead of leaving it uncleared, emitting probably old packet data but
potentially also random or sensitive application data.
Also fix the mapping mode.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5513 >
2023-10-19 23:22:33 +01:00
Jan Alexander Steffens (heftig)
2f7ec968f4
tsmux: Allow specifying PMT order via the prog-map
...
Look for an entry `PMT_<PID>` in the `prog-map`, which specifies the
relative index of the stream in the PMT.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1510 >
2022-01-24 15:37:46 +00:00
Jan Alexander Steffens (heftig)
22fb7b7b71
tsmux: Deterministically order program streams by PID
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1510 >
2022-01-24 15:37:46 +00:00
Jan Alexander Steffens (heftig)
b7ae1fa683
tsmux: Deterministically order PAT programs by number
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1510 >
2022-01-24 15:37:46 +00:00
Jan Alexander Steffens (heftig)
853178894e
tsmux: Remove program_array_index
...
It's only used for removal. Let's just scan the array.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1510 >
2022-01-24 15:37:46 +00:00
Jan Alexander Steffens (heftig)
2acaa3940a
tsmux: Replace streams GArray with GPtrArray
...
This is more appropriate.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1510 >
2022-01-24 15:37:46 +00:00
Thibault Saunier
019971a3c7
Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir
2021-09-24 16:14:36 -03:00