diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-06-17 13:18:18 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-06-17 13:18:18 +0200 |
commit | 57a13f28de3b062995ff3eeccc12d5277bf562ae (patch) | |
tree | 8d5af63889e628d8ab6ec72c3a9f711b1a406f2a | |
parent | e4492c24ea832a85935e2723de7fc963ac12635b (diff) |
audiosink: free the ringbuffer when going to NULL
Unparent and free the ringbuffer when going to NULL, like we do with the
audiosrc element. We can do this now because we correctly manage the time
jumping back to 0.
-rw-r--r-- | gst-libs/gst/audio/gstbaseaudiosink.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index a347ec283..7007e4e3a 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -1804,12 +1804,10 @@ gst_base_audio_sink_change_state (GstElement * element, gst_ring_buffer_activate (sink->ringbuffer, FALSE); gst_ring_buffer_release (sink->ringbuffer); gst_ring_buffer_close_device (sink->ringbuffer); -#if 0 GST_OBJECT_LOCK (sink); gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer)); sink->ringbuffer = NULL; GST_OBJECT_UNLOCK (sink); -#endif break; default: break; |