[rhythmbox] streaming-source: adjust buffering progress reporting



commit 00dc3f53b5b67d2837cbaa0a1b27d3fd6f2084a5
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Apr 13 22:43:42 2012 +1000

    streaming-source: adjust buffering progress reporting
    
    report 0% buffered as 1% progress so it doesn't pulse, and don't
    report 100%.

 sources/rb-streaming-source.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/sources/rb-streaming-source.c b/sources/rb-streaming-source.c
index 37f6b31..0e18031 100644
--- a/sources/rb-streaming-source.c
+++ b/sources/rb-streaming-source.c
@@ -226,9 +226,8 @@ static void
 buffering_cb (GObject *backend, gpointer whatever, guint progress, RBStreamingSource *source)
 {
 	if (progress == 0)
-		return;
-
-	if (progress == 100)
+		progress = 1;
+	else if (progress == 100)
 		progress = 0;
 
 	GDK_THREADS_ENTER ();



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