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.
This commit is contained in:
Wim Taymans 2005-11-17 14:40:12 +00:00
parent e76252cd21
commit 9edbf81fd2
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-11-17 Wim Taymans <wim@fluendo.com>
* 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 <julien@moutte.net>
* examples/seeking/seek.c: (make_dv_pipeline),

View file

@ -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;