[aravis] gv_stream: code comments.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] gv_stream: code comments.
- Date: Wed, 13 Apr 2011 14:38:44 +0000 (UTC)
commit bf4e8a9e3ca1968b97d79a346cfceef1ec537698
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Apr 13 16:36:53 2011 +0200
gv_stream: code comments.
src/arvgvstream.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index 57d0518..782cece 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -582,6 +582,8 @@ arv_gv_stream_thread (void *data)
frame = _find_frame_data (thread_data, frame_id, packet, packet_id, read_count, time_us);
if (frame != NULL) {
+
+ /* Check for duplicated packets */
if (packet_id < frame->n_packets) {
if (frame->packet_data[packet_id].received)
thread_data->n_duplicated_packets++;
@@ -589,6 +591,7 @@ arv_gv_stream_thread (void *data)
frame->packet_data[packet_id].received = TRUE;
}
+ /* Keep track of last packet of a continuous block starting from packet 0 */
for (i = frame->last_valid_packet + 1; i < frame->n_packets; i++)
if (!frame->packet_data[i].received)
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]