From ef4ea4876c436e4080950a7db9f6a2678535e600 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 26 Sep 2007 20:08:28 +0000 Subject: gst/rtpmanager/gstrtpbin.c: Fix cleanup crasher. Original commit message from CVS: * gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_dispose), (gst_rtp_bin_finalize): Fix cleanup crasher. * gst/rtpmanager/rtpjitterbuffer.c: (rtp_jitter_buffer_init), (calculate_skew): * gst/rtpmanager/rtpjitterbuffer.h: Dynamically adjust the skew calculation window so that we calculate it over a period of around 2 seconds. --- gst/rtpmanager/gstrtpbin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst/rtpmanager/gstrtpbin.c') diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index a95a0eec..449d18f2 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -1175,9 +1175,11 @@ gst_rtp_bin_dispose (GObject * object) rtpbin = GST_RTP_BIN (object); g_slist_foreach (rtpbin->sessions, (GFunc) free_session, NULL); - g_slist_foreach (rtpbin->clients, (GFunc) free_client, NULL); g_slist_free (rtpbin->sessions); rtpbin->sessions = NULL; + g_slist_foreach (rtpbin->clients, (GFunc) free_client, NULL); + g_slist_free (rtpbin->clients); + rtpbin->clients = NULL; G_OBJECT_CLASS (parent_class)->dispose (object); } @@ -1191,7 +1193,6 @@ gst_rtp_bin_finalize (GObject * object) g_mutex_free (rtpbin->priv->bin_lock); gst_object_unref (rtpbin->provided_clock); - g_slist_free (rtpbin->sessions); G_OBJECT_CLASS (parent_class)->finalize (object); } -- cgit v1.2.1