mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
tsmux: Skip empty buffers
They can be created e.g. by aggregator when there is a gap. Such buffers should not be muxed at all. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1611>
This commit is contained in:
parent
3d8372cc50
commit
7cebd5b359
1 changed files with 5 additions and 3 deletions
|
@ -1335,9 +1335,11 @@ gst_base_ts_mux_aggregate_buffer (GstBaseTsMux * mux,
|
|||
|
||||
GST_DEBUG_OBJECT (mux, "delta: %d", delta);
|
||||
|
||||
if (gst_buffer_get_size (buf) > 0) {
|
||||
stream_data = stream_data_new (buf);
|
||||
tsmux_stream_add_data (best->stream, stream_data->map_info.data,
|
||||
stream_data->map_info.size, stream_data, pts, dts, !delta);
|
||||
}
|
||||
|
||||
/* outgoing ts follows ts of PCR program stream */
|
||||
if (prog->pcr_stream == best->stream) {
|
||||
|
|
Loading…
Reference in a new issue