[Telepathy-commits] [telepathy-stream-engine/master] Remove potentially locking code

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 9 17:17:23 PST 2008


---
 src/audiostream.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/audiostream.c b/src/audiostream.c
index 977c1ee..50cfd71 100644
--- a/src/audiostream.c
+++ b/src/audiostream.c
@@ -183,19 +183,6 @@ free_sinkbin (gpointer data, gpointer user_data)
 {
   TpStreamEngineAudioStream *self = TP_STREAM_ENGINE_AUDIO_STREAM (user_data);
   GstElement *bin = data;
-  GstPad *binsink = NULL, *sinkpeer = NULL;
-
-  binsink = gst_element_get_static_pad (bin, "sink");
-  sinkpeer = gst_pad_get_peer (binsink);
-  if (sinkpeer)
-    {
-      gst_pad_unlink (sinkpeer, binsink);
-      gst_object_unref (sinkpeer);
-    }
-
-  GST_PAD_STREAM_LOCK(binsink);
-  GST_PAD_STREAM_UNLOCK(binsink);
-  gst_object_unref (binsink);
 
   gst_element_set_locked_state (bin, TRUE);
   gst_element_set_state (bin, GST_STATE_NULL);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list