gst-libs/gst/audio/gstbaseaudiosrc.c: Fix audio sources, forgot to make the ringbuffe...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 23 Mar 2006 16:58:03 +0000 (16:58 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 23 Mar 2006 16:58:03 +0000 (16:58 +0000)
Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_get_time), (gst_base_audio_src_create),
(gst_base_audio_src_change_state):
Fix audio sources, forgot to make the ringbuffer
startable...

ChangeLog
gst-libs/gst/audio/gstbaseaudiosrc.c

index fc41903b3552554b91010ee8adee6d8d5d669eeb..cf995ffca45570d59a37283ec23039b2f7c71f05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-03-23  Wim Taymans  <wim@fluendo.com>
+
+       * gst-libs/gst/audio/gstbaseaudiosrc.c:
+       (gst_base_audio_src_get_time), (gst_base_audio_src_create),
+       (gst_base_audio_src_change_state):
+       Fix audio sources, forgot to make the ringbuffer
+       startable...
+
 2006-03-23  Wim Taymans  <wim@fluendo.com>
 
        * gst-libs/gst/audio/gstbaseaudiosrc.c:
index fe86fb8b069beeacdd84f3452f9be4463aa83982..0dc88eed7a0c40aaa1c61e4d2da2be0162ccb4ed 100644 (file)
@@ -417,6 +417,7 @@ gst_base_audio_src_change_state (GstElement * element,
       gst_ring_buffer_set_flushing (src->ringbuffer, FALSE);
       break;
     case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
+      gst_ring_buffer_may_start (src->ringbuffer, TRUE);
       break;
     default:
       break;
@@ -426,6 +427,7 @@ gst_base_audio_src_change_state (GstElement * element,
 
   switch (transition) {
     case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
+      gst_ring_buffer_may_start (src->ringbuffer, FALSE);
       gst_ring_buffer_pause (src->ringbuffer);
       break;
     case GST_STATE_CHANGE_PAUSED_TO_READY: