[aravis/timeout-resend] gv_stream: show statistic debug info first.



commit 40f4b57be16169a9f53011df8161d33c25167241
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed Mar 2 21:13:08 2011 +0100

    gv_stream: show statistic debug info first.

 src/arvgvstream.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index 1508893..37205a2 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -691,6 +691,13 @@ arv_gv_stream_finalize (GObject *object)
 		thread_data->cancel = TRUE;
 		g_thread_join (gv_stream->thread);
 
+		g_object_unref (thread_data->device_address);
+
+		statistic_string = arv_statistic_to_string (thread_data->statistic);
+		arv_debug ("stream", statistic_string);
+		g_free (statistic_string);
+		arv_statistic_free (thread_data->statistic);
+
 		arv_debug ("stream",
 			   "[GvStream::finalize] n_completed_buffers    = %d", thread_data->n_completed_buffers);
 		arv_debug ("stream",
@@ -712,14 +719,6 @@ arv_gv_stream_finalize (GObject *object)
 		arv_debug ("stream",
 			   "[GvStream::finalize] n_duplicated_packets   = %d", thread_data->n_duplicated_packets);
 
-		g_object_unref (thread_data->device_address);
-
-		statistic_string = arv_statistic_to_string (thread_data->statistic);
-		arv_debug ("stream", statistic_string);
-		g_free (statistic_string);
-
-		arv_statistic_free (thread_data->statistic);
-
 		g_free (thread_data);
 
 		gv_stream->thread_data = NULL;



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