mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
flacparse: make buffer DTS setting explicitly unconditional
We are setting it to PTS regardless of block_strategy
This commit is contained in:
parent
2c14f2fff1
commit
5f4317843c
1 changed files with 2 additions and 2 deletions
|
@ -1649,7 +1649,6 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
||||||
GST_BUFFER_PTS (buffer) =
|
GST_BUFFER_PTS (buffer) =
|
||||||
gst_util_uint64_scale (flacparse->sample_number,
|
gst_util_uint64_scale (flacparse->sample_number,
|
||||||
flacparse->block_size * GST_SECOND, flacparse->samplerate);
|
flacparse->block_size * GST_SECOND, flacparse->samplerate);
|
||||||
GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer);
|
|
||||||
GST_BUFFER_OFFSET_END (buffer) =
|
GST_BUFFER_OFFSET_END (buffer) =
|
||||||
flacparse->sample_number * flacparse->block_size +
|
flacparse->sample_number * flacparse->block_size +
|
||||||
flacparse->block_size;
|
flacparse->block_size;
|
||||||
|
@ -1657,10 +1656,11 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
||||||
GST_BUFFER_PTS (buffer) =
|
GST_BUFFER_PTS (buffer) =
|
||||||
gst_util_uint64_scale (flacparse->sample_number, GST_SECOND,
|
gst_util_uint64_scale (flacparse->sample_number, GST_SECOND,
|
||||||
flacparse->samplerate);
|
flacparse->samplerate);
|
||||||
GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer);
|
|
||||||
GST_BUFFER_OFFSET_END (buffer) =
|
GST_BUFFER_OFFSET_END (buffer) =
|
||||||
flacparse->sample_number + flacparse->block_size;
|
flacparse->sample_number + flacparse->block_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer);
|
||||||
GST_BUFFER_OFFSET (buffer) =
|
GST_BUFFER_OFFSET (buffer) =
|
||||||
gst_util_uint64_scale (GST_BUFFER_OFFSET_END (buffer), GST_SECOND,
|
gst_util_uint64_scale (GST_BUFFER_OFFSET_END (buffer), GST_SECOND,
|
||||||
flacparse->samplerate);
|
flacparse->samplerate);
|
||||||
|
|
Loading…
Reference in a new issue