[Bug 746814] rtpsession: Always wait with sending RTCP until we have something to report

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 30 06:27:58 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=746814

Håvard Graff (hgr) <havard.graff at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gstreamer at pexip.com,
                   |                            |havard.graff at gmail.com

--- Comment #2 from Håvard Graff (hgr) <havard.graff at gmail.com> ---
Here is a test you can use:

GST_START_TEST (test_dont_send_rtcp_while_idle)
{
  GstHarness * h_rtcp = gst_harness_new_with_padnames (
      "rtpsession", "recv_rtcp_sink", "send_rtcp_src");

  GstHarness * h_send = gst_harness_new_with_element (
      h_rtcp->element, "send_rtp_sink", "send_rtp_src");

  g_object_set (h_send->element, "rtcp-min-interval", 1, NULL);

  g_usleep (G_USEC_PER_SEC * 1);

  fail_unless_equals_int (0, gst_harness_buffers_in_queue (h_rtcp));

  gst_harness_teardown (h_send);
  gst_harness_teardown (h_rtcp);
}
GST_END_TEST;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list