[Pkg-telepathy-commits] [libnice] 181/265: pseudotcp: Also accept NiceInputMessage array with a single message

Simon McVittie smcv at debian.org
Wed May 14 12:05:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 81b158a111f285a8bf8620ad16d0b51e0f8cd294
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Mar 27 17:51:03 2014 -0400

    pseudotcp: Also accept NiceInputMessage array with a single message
---
 agent/pseudotcp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/agent/pseudotcp.c b/agent/pseudotcp.c
index 8962ffc..013b666 100644
--- a/agent/pseudotcp.c
+++ b/agent/pseudotcp.c
@@ -908,6 +908,12 @@ pseudo_tcp_socket_notify_message (PseudoTcpSocket *self,
 {
   gboolean retval;
 
+  g_assert_cmpuint (message->n_buffers, >, 0);
+
+  if (message->n_buffers == 1)
+    return pseudo_tcp_socket_notify_packet (self, message->buffers[0].buffer,
+        message->buffers[0].size);
+
   g_assert_cmpuint (message->n_buffers, ==, 2);
   g_assert_cmpuint (message->buffers[0].size, ==, HEADER_SIZE);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list