From a390a6791cfd4a38adaaf26eb16332622d1ff3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 11 Jul 2016 11:59:19 -0400 Subject: [PATCH] rtp example: Fix leak Also stop fetching the internal source as this functionality has been broken. --- tests/examples/rtp/client-PCMA.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/examples/rtp/client-PCMA.c b/tests/examples/rtp/client-PCMA.c index 664b33664c..8d7da61391 100644 --- a/tests/examples/rtp/client-PCMA.c +++ b/tests/examples/rtp/client-PCMA.c @@ -88,13 +88,19 @@ on_ssrc_active_cb (GstElement * rtpbin, guint sessid, guint ssrc, /* get the right session */ g_signal_emit_by_name (rtpbin, "get-internal-session", sessid, &session); +#if 0 + /* FIXME: This is broken in rtpbin */ /* get the internal source (the SSRC allocated to us, the receiver */ g_object_get (session, "internal-source", &isrc, NULL); print_source_stats (isrc); + g_object_unref (isrc); +#endif /* get the remote source that sent us RTCP */ g_signal_emit_by_name (session, "get-source-by-ssrc", ssrc, &osrc); print_source_stats (osrc); + g_object_unref (osrc); + g_object_unref (session); } /* will be called when rtpbin has validated a payload that we can depayload */