[Bug 773269] rtpbin: avoid generating errors when rtcp messages are empty and check the queue is not empty

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 21 13:42:57 UTC 2016


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

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #338187|none                        |needs-work
             status|                            |

--- Comment #12 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Review of attachment 338187:
 --> (https://bugzilla.gnome.org/review?bug=773269&attachment=338187)

::: gst/rtpmanager/rtpsession.c
@@ +4070,3 @@
+  if (g_queue_is_empty (&data.output)) {
+    GST_ERROR ("rtpsession: No RTCP packet generated for a timeout");
+  }

That's not enough: there will always be buffers in the queue if there are
sources. They just might be empty buffers.

@@ -4087,3 @@

-    if (empty_buffer)
-      GST_ERROR ("rtpsession: Trying to send an empty RTCP packet");

I would suggest to add a gboolean "all_empty" outside the loop and initialize
it to TRUE. Once you find a non-empty buffer, you set it to FALSE. If it's TRUE
after the loop, do a warning

-- 
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