From 5f4317843c8e1abb6a26a084fa3f0871728b94de Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Thu, 31 Dec 2015 14:40:15 -0800 Subject: [PATCH] flacparse: make buffer DTS setting explicitly unconditional We are setting it to PTS regardless of block_strategy --- gst/audioparsers/gstflacparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 00a56ed8b8..ae91a2ac93 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1649,7 +1649,6 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame, GST_BUFFER_PTS (buffer) = gst_util_uint64_scale (flacparse->sample_number, flacparse->block_size * GST_SECOND, flacparse->samplerate); - GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer); GST_BUFFER_OFFSET_END (buffer) = flacparse->sample_number * flacparse->block_size + flacparse->block_size; @@ -1657,10 +1656,11 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame, GST_BUFFER_PTS (buffer) = gst_util_uint64_scale (flacparse->sample_number, GST_SECOND, flacparse->samplerate); - GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer); GST_BUFFER_OFFSET_END (buffer) = flacparse->sample_number + flacparse->block_size; } + + GST_BUFFER_DTS (buffer) = GST_BUFFER_PTS (buffer); GST_BUFFER_OFFSET (buffer) = gst_util_uint64_scale (GST_BUFFER_OFFSET_END (buffer), GST_SECOND, flacparse->samplerate);