From ac8c687a04fffe65dc47f529aec659b21d23245b Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 30 Oct 2006 08:14:11 +0000 Subject: [PATCH] Don't unref an already destroyed audiosink object. Fixes #1822 --- .../src/modules/playlistExecutor/src/GstreamerPlayer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx index c5519cbf2..15f2d99a0 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -539,12 +539,11 @@ GstreamerPlayer :: setAudioDevice(const std::string &deviceName) } if (relink && audiosink) { + debug() << "Relinking sink." << endl; if (decoder) { gst_element_unlink(decoder, audiosink); } gst_bin_remove(GST_BIN(pipeline), audiosink); - // FIXME: why unref here? remove should unref already - gst_object_unref(GST_OBJECT(audiosink)); audiosink = 0; }