[farsight2/master] Only dispose of the blueprints once all of the session elements have been destroyed

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:19:58 PST 2008


---
 gst/fsrtpconference/fs-rtp-session.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index c86e548..e500471 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -305,11 +305,6 @@ fs_rtp_session_dispose (GObject *object)
     return;
   }
 
-  if (self->priv->blueprints) {
-    fs_rtp_blueprints_unref (self->priv->media_type);
-    self->priv->blueprints = NULL;
-  }
-
   /* Lets stop all of the elements sink to source */
 
   /* First the send pipeline */
@@ -422,6 +417,12 @@ fs_rtp_session_dispose (GObject *object)
     self->priv->free_substreams = NULL;
   }
 
+
+  if (self->priv->blueprints) {
+    fs_rtp_blueprints_unref (self->priv->media_type);
+    self->priv->blueprints = NULL;
+  }
+
   /* MAKE sure dispose does not run twice. */
   self->priv->disposed = TRUE;
 
-- 
1.5.6.5




More information about the farsight-commits mailing list