[aravis] gv_device: correctly check the write memory ack packet size.



commit e4ad79a38cea766adc0f6949af1950e962a4f4e2
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon May 31 22:11:11 2010 +0200

    gv_device: correctly check the write memory ack packet size.

 src/arvgvdevice.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvgvdevice.c b/src/arvgvdevice.c
index 7f9d9a3..be10168 100644
--- a/src/arvgvdevice.c
+++ b/src/arvgvdevice.c
@@ -152,7 +152,7 @@ _write_memory (ArvGvDeviceIOData *io_data, guint32 address, guint32 size, void *
 		if (g_poll (&io_data->poll_in_event, 1, io_data->gvcp_timeout_ms) > 0) {
 			count = g_socket_receive (io_data->socket, io_data->buffer,
 						  ARV_GV_DEVICE_BUFFER_SIZE, NULL, NULL);
-			if (count > arv_gvcp_packet_get_write_memory_ack_size ()) {
+			if (count >= arv_gvcp_packet_get_write_memory_ack_size ()) {
 				arv_gvcp_packet_debug ((ArvGvcpPacket *) io_data->buffer);
 				if (arv_gvcp_packet_get_packet_count (io_data->buffer) == io_data->packet_count)
 					success = TRUE;



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