[aravis] fake: increment n_failures on incorrectly filled buffers.



commit a254ef242aedbc563706b091067558a6150075d7
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed May 19 04:38:36 2010 -0400

    fake: increment n_failures on incorrectly filled buffers.

 src/arvfakestream.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/arvfakestream.c b/src/arvfakestream.c
index 66845d4..125d50a 100644
--- a/src/arvfakestream.c
+++ b/src/arvfakestream.c
@@ -66,8 +66,11 @@ arv_fake_stream_thread (void *data)
 		buffer = g_async_queue_try_pop (thread_data->input_queue);
 		if (buffer != NULL) {
 			arv_fake_camera_fill_buffer (thread_data->camera, buffer);
+			if (buffer->status == ARV_BUFFER_STATUS_SUCCESS)
+				thread_data->n_completed_buffers++;
+			else
+				thread_data->n_failures++;
 			g_async_queue_push (thread_data->output_queue, buffer);
-			thread_data->n_completed_buffers++;
 		} else
 			thread_data->n_underruns++;
 	}



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