From: Wim Taymans Date: Thu, 17 Nov 2005 14:40:12 +0000 (+0000) Subject: gst-libs/gst/audio/gstbaseaudiosrc.c: Fix the audiosrc base class again, we did not... X-Git-Tag: 1.19.3~511^2~12530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9edbf81fd22a2de2c5b822e8b081722be6c8dd56;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ChangeLog b/ChangeLog index 6bf81a7..1ce4fbd 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 a579eee..b1d14b4 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;