[aravis/timeout-resend] gv_stream: don't call _missing_packet_check with frame==NULL.



commit d3b87ea2cff85ade1bdde0fc55da00bbac735103
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Apr 11 10:14:49 2011 +0200

    gv_stream: don't call _missing_packet_check with frame==NULL.

 src/arvgvstream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index 953ba6a..6d2a787 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -553,7 +553,6 @@ arv_gv_stream_thread (void *data)
 			frame = _find_frame_data (thread_data, frame_id, packet, packet_id, read_count, time_us);
 
 			if (frame != NULL) {
-
 				if (packet_id < frame->n_packets) {
 					if (frame->packet_data[packet_id].received)
 						thread_data->n_duplicated_packets++;
@@ -577,8 +576,9 @@ arv_gv_stream_thread (void *data)
 						_process_data_trailer (thread_data, frame, packet, packet_id);
 						break;
 				}
+
+				_missing_packet_check (thread_data, frame, packet_id, time_us);
 			}
-			_missing_packet_check (thread_data, frame, packet_id, time_us);
 		}
 
 		_packet_timeout_check (thread_data, time_us);



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