summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-11-21 17:14:02 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-11-21 17:14:02 +0000
commit7bbc4c77bc1768f4d0a7553725ab232e272ddd7b (patch)
tree9b0c6a56815ec56a47655d11818987517d8b0bf3
parent615eecd0f35a98fbbc002a4396358a11d26c6774 (diff)
downloadgst-plugins-bad-7bbc4c77bc1768f4d0a7553725ab232e272ddd7b.tar.gz
gst-plugins-bad-7bbc4c77bc1768f4d0a7553725ab232e272ddd7b.tar.bz2
gst-plugins-bad-7bbc4c77bc1768f4d0a7553725ab232e272ddd7b.zip
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.
-rw-r--r--gst/audioresample/gstaudioresample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index c141c1a2..6077a610 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -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);