summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2016-07-11 11:59:19 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-07-11 11:59:21 -0400
commita390a6791cfd4a38adaaf26eb16332622d1ff3ae (patch)
tree46ea70a0755d13ab2f518f73188a6c33414aa5ca /tests
parent6ca6a4111ce4580698bddec5e2bb342feda714b0 (diff)
downloadgstreamer-plugins-good-a390a6791cfd4a38adaaf26eb16332622d1ff3ae.tar.gz
rtp example: Fix leak
Also stop fetching the internal source as this functionality has been broken.
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/rtp/client-PCMA.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/examples/rtp/client-PCMA.c b/tests/examples/rtp/client-PCMA.c
index 664b33664..8d7da6139 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 */