summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/gstrtpbin.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-09-26 20:08:28 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-09-26 20:08:28 +0000
commitef4ea4876c436e4080950a7db9f6a2678535e600 (patch)
treedd272388d4caadfbccc4a86e6ee7901c6baca634 /gst/rtpmanager/gstrtpbin.c
parentccfbe1569dbd19fecd4bcfae298cbee9c9345d29 (diff)
downloadgst-plugins-bad-ef4ea4876c436e4080950a7db9f6a2678535e600.tar.gz
gst-plugins-bad-ef4ea4876c436e4080950a7db9f6a2678535e600.tar.bz2
gst-plugins-bad-ef4ea4876c436e4080950a7db9f6a2678535e600.zip
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.
Diffstat (limited to 'gst/rtpmanager/gstrtpbin.c')
-rw-r--r--gst/rtpmanager/gstrtpbin.c5
1 files changed, 3 insertions, 2 deletions
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);
}