[Pkg-voip-commits] [janus] 238/282: More compact cleanup of retransmit buffer
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.
commit 1e5c1880871c2272dabf05f2388227de7d017e3e
Author: Lorenzo Miniero <lminiero at gmail.com>
Date: Fri Dec 1 16:57:20 2017 +0100
More compact cleanup of retransmit buffer
---
ice.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ice.c b/ice.c
index 2708387..caadc85 100644
--- a/ice.c
+++ b/ice.c
@@ -1431,8 +1431,7 @@ void janus_ice_component_free(GHashTable *components, janus_ice_component *compo
}
if(component->retransmit_buffer != NULL) {
janus_rtp_packet *p = NULL;
- while(g_queue_get_length(component->retransmit_buffer) > 0) {
- p = (janus_rtp_packet *)g_queue_pop_head(component->retransmit_buffer);
+ while((p = (janus_rtp_packet *)g_queue_pop_head(component->retransmit_buffer)) != NULL) {
g_free(p->data);
p->data = NULL;
g_free(p);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list