mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
isomp4/qtmux: make sure to switch to next chunk on new caps
For example, with single video sink pad, and new codec_data is received, current_chunk_offset must be reset to -1 for the aggregate loop to open a new chunk. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1047>
This commit is contained in:
parent
e069824c7d
commit
fa835d686f
1 changed files with 8 additions and 0 deletions
|
@ -6872,6 +6872,14 @@ gst_qt_mux_sink_event (GstAggregator * agg, GstAggregatorPad * agg_pad,
|
|||
caps);
|
||||
} else {
|
||||
ret = qtmux_pad->set_caps (qtmux_pad, caps);
|
||||
|
||||
GST_OBJECT_LOCK (qtmux);
|
||||
if (qtmux->current_pad == qtmux_pad) {
|
||||
qtmux->current_chunk_offset = -1;
|
||||
qtmux->current_chunk_size = 0;
|
||||
qtmux->current_chunk_duration = 0;
|
||||
}
|
||||
GST_OBJECT_UNLOCK (qtmux);
|
||||
}
|
||||
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in a new issue