[gupnp-tools/wip/search: 27/33] av-cp: Fix debug output for unknown total count



commit 75b5aa611c7b81153f50bfe96077c53979351e9b
Author: Jens Georg <mail jensge org>
Date:   Thu Aug 18 20:17:50 2016 +0200

    av-cp: Fix debug output for unknown total count
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/av-cp/search-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/av-cp/search-dialog.c b/src/av-cp/search-dialog.c
index 5bd4ddf..3335150 100644
--- a/src/av-cp/search-dialog.c
+++ b/src/av-cp/search-dialog.c
@@ -230,7 +230,7 @@ out:
                 g_debug ("Starting new slice %u/%u (total %u)",
                          task->start,
                          task->count,
-                         task->total);
+                         task->total == -1 ? 0 : task->total);
 
                 av_cp_media_server_search_async (task->server,
                                                  task->cancellable,


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