mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
matroskamux: avoid building index when streamable
... as it will not be written anyway. Fixes #648937 (?).
This commit is contained in:
parent
e2ca4ee481
commit
fc94b78fe1
1 changed files with 4 additions and 3 deletions
|
@ -2711,9 +2711,10 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
|
|||
* the block in the cluster which contains the timestamp, should also work
|
||||
* for files with multiple audio tracks.
|
||||
*/
|
||||
if (is_video_keyframe ||
|
||||
((collect_pad->track->type == GST_MATROSKA_TRACK_TYPE_AUDIO) &&
|
||||
(mux->num_streams == 1))) {
|
||||
if (!mux->streamable &&
|
||||
(is_video_keyframe ||
|
||||
((collect_pad->track->type == GST_MATROSKA_TRACK_TYPE_AUDIO) &&
|
||||
(mux->num_streams == 1)))) {
|
||||
gint last_idx = -1;
|
||||
|
||||
if (mux->min_index_interval != 0) {
|
||||
|
|
Loading…
Reference in a new issue