rtpsession: Only schedule a timer when we actually have to send RTCP
authorSebastian Dröge <sebastian@centricular.com>
Tue, 26 May 2015 12:47:31 +0000 (14:47 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 2 Jun 2015 09:38:15 +0000 (11:38 +0200)
commit647eefea67bf1ec4858b1108784e73e9216a7c13
tree732f705e97f5512d2146955f1b611d1e98acb440
parent8ada98964da158b17f128e196d6262c24fb0aac0
rtpsession: Only schedule a timer when we actually have to send RTCP

Otherwise we will have 10s-100s of thread wakeups in feedback profiles, create
RTCP packets, etc. just to suppress them in 99% of the cases (i.e. if no
feedback is actually pending and no regular RTCP has to be sent).

This improves CPU usage and battery life quite a lot.

https://bugzilla.gnome.org/show_bug.cgi?id=746543
gst/rtpmanager/rtpsession.c
gst/rtpmanager/rtpsession.h