gst-libs/gst/audio/gstbaseaudiosrc.c: unparent instead of unref the ringbuffer.

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):
unparent instead of unref the ringbuffer.
This commit is contained in:
Wim Taymans 2006-03-23 16:29:58 +00:00
parent 227474e464
commit 2df1088b3f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
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):
unparent instead of unref the ringbuffer.
2006-03-23 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:

View file

@ -435,7 +435,7 @@ gst_base_audio_src_change_state (GstElement * element,
break;
case GST_STATE_CHANGE_READY_TO_NULL:
gst_ring_buffer_close_device (src->ringbuffer);
gst_object_unref (src->ringbuffer);
gst_object_unparent (GST_OBJECT_CAST (src->ringbuffer));
src->ringbuffer = NULL;
break;
default: