From 9edbf81fd22a2de2c5b822e8b081722be6c8dd56 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 17 Nov 2005 14:40:12 +0000 Subject: [PATCH] gst-libs/gst/audio/gstbaseaudiosrc.c: Fix the audiosrc base class again, we did not unflush. Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosrc.c: (gst_base_audio_src_change_state): Fix the audiosrc base class again, we did not unflush. --- ChangeLog | 6 ++++++ gst-libs/gst/audio/gstbaseaudiosrc.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6bf81a720a..1ce4fbd099 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-17 Wim Taymans + + * gst-libs/gst/audio/gstbaseaudiosrc.c: + (gst_base_audio_src_change_state): + Fix the audiosrc base class again, we did not unflush. + 2005-11-17 Julien MOUTTE * examples/seeking/seek.c: (make_dv_pipeline), diff --git a/gst-libs/gst/audio/gstbaseaudiosrc.c b/gst-libs/gst/audio/gstbaseaudiosrc.c index a579eeebeb..b1d14b417e 100644 --- a/gst-libs/gst/audio/gstbaseaudiosrc.c +++ b/gst-libs/gst/audio/gstbaseaudiosrc.c @@ -396,6 +396,7 @@ gst_base_audio_src_change_state (GstElement * element, src->next_sample = 0; break; case GST_STATE_CHANGE_READY_TO_PAUSED: + gst_ring_buffer_set_flushing (src->ringbuffer, FALSE); break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; @@ -410,6 +411,7 @@ gst_base_audio_src_change_state (GstElement * element, gst_ring_buffer_pause (src->ringbuffer); break; case GST_STATE_CHANGE_PAUSED_TO_READY: + gst_ring_buffer_set_flushing (src->ringbuffer, TRUE); gst_ring_buffer_release (src->ringbuffer); src->next_sample = 0; break;