mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
gst/: Segment update fix.
Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_class_init), (gst_base_audio_sink_init), (gst_base_audio_sink_provide_clock), (gst_base_audio_sink_set_clock), (gst_base_audio_sink_render), (gst_base_audio_sink_change_state): * gst/audioresample/gstaudioresample.c: Segment update fix.
This commit is contained in:
parent
615eecd0f3
commit
7bbc4c77bc
1 changed files with 2 additions and 2 deletions
|
@ -399,7 +399,7 @@ static GstFlowReturn
|
|||
outsize, outsamples);
|
||||
|
||||
GST_BUFFER_OFFSET (outbuf) = audioresample->offset;
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = base->segment_start +
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = base->segment.start +
|
||||
audioresample->offset * GST_SECOND / audioresample->o_rate;
|
||||
|
||||
audioresample->offset += outsamples;
|
||||
|
@ -408,7 +408,7 @@ static GstFlowReturn
|
|||
/* we calculate DURATION as the difference between "next" timestamp
|
||||
* and current timestamp so we ensure a contiguous stream, instead of
|
||||
* having rounding errors. */
|
||||
GST_BUFFER_DURATION (outbuf) = base->segment_start +
|
||||
GST_BUFFER_DURATION (outbuf) = base->segment.start +
|
||||
audioresample->offset * GST_SECOND / audioresample->o_rate -
|
||||
GST_BUFFER_TIMESTAMP (outbuf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue