[farsight2/master] rtpspecialsource: Simplify muxer pad release code

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 21 14:55:00 PDT 2009


---
 gst/fsrtpconference/fs-rtp-special-source.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-special-source.c b/gst/fsrtpconference/fs-rtp-special-source.c
index 2e5ed66..9d332cf 100644
--- a/gst/fsrtpconference/fs-rtp-special-source.c
+++ b/gst/fsrtpconference/fs-rtp-special-source.c
@@ -188,15 +188,7 @@ stop_source_thread (gpointer data)
   FS_RTP_SPECIAL_SOURCE_LOCK (self);
   if (self->priv->muxer_request_pad)
   {
-    GstElement *parent =
-      gst_pad_get_parent_element (self->priv->muxer_request_pad);
-
-    if (parent)
-    {
-      gst_element_release_request_pad (parent, self->priv->muxer_request_pad);
-      gst_object_unref (parent);
-    }
-
+    gst_element_release_request_pad (self->priv->rtpmuxer, self->priv->muxer_request_pad);
     gst_object_unref (self->priv->muxer_request_pad);
   }
   self->priv->muxer_request_pad = NULL;
-- 
1.5.6.5




More information about the farsight-commits mailing list