[Pkg-voip-commits] [janus] 233/282: Only use g_async_queue_push_front if glib is recent enough

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:44 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 7a42432c2683879e124f3f99251fb21d8cc37a4e
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Thu Nov 30 16:28:21 2017 +0100

    Only use g_async_queue_push_front if glib is recent enough
---
 ice.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ice.c b/ice.c
index 8c79cb0..e032b96 100644
--- a/ice.c
+++ b/ice.c
@@ -1243,7 +1243,11 @@ void janus_ice_webrtc_hangup(janus_ice_handle *handle, const char *reason) {
 		handle->hangup_reason = reason;
 	}
 	if(handle->queued_packets != NULL)
+#if GLIB_CHECK_VERSION(2, 46, 0)
+		g_async_queue_push_front(handle->queued_packets, &janus_ice_dtls_alert);
+#else
 		g_async_queue_push(handle->queued_packets, &janus_ice_dtls_alert);
+#endif
 	/* Get rid of the loop */
 	if(handle->send_thread == NULL) {
 		if(handle->iceloop != NULL) {

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