[farsight2/master] Remove sink pad on session dispose
Olivier Crête
olivier.crete at collabora.co.uk
Tue Jul 14 09:50:47 PDT 2009
---
gst/fsmsnconference/fs-msn-session.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/fsmsnconference/fs-msn-session.c b/gst/fsmsnconference/fs-msn-session.c
index 7a832a3..877b8be 100644
--- a/gst/fsmsnconference/fs-msn-session.c
+++ b/gst/fsmsnconference/fs-msn-session.c
@@ -230,6 +230,9 @@ fs_msn_session_dispose (GObject *object)
if (self->priv->media_sink_pad)
gst_pad_set_active (self->priv->media_sink_pad, FALSE);
+ gst_element_remove (self->priv->conferencebin, self->priv->media_sink_pad);
+ self->priv->media_sink_pad = NULL;
+
/* MAKE sure dispose does not run twice. */
self->priv->disposed = TRUE;
--
1.5.6.5
More information about the farsight-commits
mailing list