[aravis] gv_stream: correcttly check for missing frame when frame id is a 16 bit value.



commit 43b0842e3430f49f582060ffc071438830134255
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sat May 14 22:11:14 2011 +0200

    gv_stream: correcttly check for missing frame when frame id is a 16 bit value.

 src/arvfakegvcamera.c |    2 +-
 src/arvgvstream.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvfakegvcamera.c b/src/arvfakegvcamera.c
index 177fbd0..d4671e4 100644
--- a/src/arvfakegvcamera.c
+++ b/src/arvfakegvcamera.c
@@ -93,7 +93,7 @@ arv_fake_gv_camera_thread (void *user_data)
 	void *packet_buffer;
 	size_t packet_size;
 	size_t payload = 0;
-	guint16 frame_id = 0;
+	guint16 frame_id = 65500; /* Make circular counter bugs happen quicker */
 	guint16 block_id;
 	ptrdiff_t offset;
 	guint32 gv_packet_size;
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index a2898c8..8e38898 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -318,7 +318,7 @@ _find_frame_data (ArvGvStreamThreadData *thread_data,
 				       NULL);
 
 	{
-		gint32 frame_id_inc;
+		gint16 frame_id_inc;
 
 		frame_id_inc = (gint )frame_id - (gint) thread_data->last_frame_id;
 		if (frame_id_inc > 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]