changeset 1274:d7d7037fc583 trunk

[svn] - Buffer indicator support for vorbis.
author nhjm449
date Fri, 16 Jun 2006 02:24:10 -0700
parents 3b990c26fc46
children 847d9a218f66
files ChangeLog Plugins/Input/vorbis/http.c
diffstat 2 files changed, 24 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jun 16 02:17:33 2006 -0700
+++ b/ChangeLog	Fri Jun 16 02:24:10 2006 -0700
@@ -1,3 +1,21 @@
+2006-06-16 09:17:33 +0000  George Averill <nhjm449@gmail.com>
+  revision [1460]
+  - Support for the buffer indicator in playpaus.png that was apparently 
+  ignored by XMMS devs. Supports mp3 streams only, at the moment.
+  
+
+  Changes:        Modified:
+  +6 -1           trunk/Plugins/Input/mpg123/http.c  
+  +17 -0          trunk/audacious/input.c  
+  +2 -0           trunk/audacious/input.h  
+  +3 -0           trunk/audacious/playback.c  
+  +17 -2          trunk/audacious/playstatus.c  
+  +2 -0           trunk/audacious/playstatus.h  
+  +1 -0           trunk/audacious/plugin.h  
+  +2 -1           trunk/audacious/pluginenum.c  
+  +0 -0           trunk/skin/playpaus.png  
+
+
 2006-06-16 08:45:08 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1458]
   - fix ui_fileinfo problem
--- a/Plugins/Input/vorbis/http.c	Fri Jun 16 02:17:33 2006 -0700
+++ b/Plugins/Input/vorbis/http.c	Fri Jun 16 02:24:10 2006 -0700
@@ -572,8 +572,10 @@
 
     while (going) {
 
-        if (!http_used() && !vorbis_ip.output->buffer_playing())
+        if (!http_used() && !vorbis_ip.output->buffer_playing()) {
             prebuffering = TRUE;
+            vorbis_ip.set_status_buffering(TRUE);
+        }
         if (http_free() > 0 && !eof) {
             if (http_check_for_data()) {
                 cnt = min(http_free(), buffer_length - wr_index);
@@ -584,6 +586,7 @@
                     eof = TRUE;
                     if (prebuffering) {
                         prebuffering = FALSE;
+                        vorbis_ip.set_status_buffering(FALSE);
 
                         vorbis_ip.set_info_text(NULL);
                     }
@@ -596,6 +599,7 @@
             if (prebuffering) {
                 if (http_used() > prebuffer_length) {
                     prebuffering = FALSE;
+                    vorbis_ip.set_status_buffering(FALSE);
                     vorbis_ip.set_info_text(NULL);
                 }
                 else {
@@ -643,6 +647,7 @@
     prebuffer_length = (buffer_length * vorbis_cfg.http_prebuffer) / 100;
     buffer_read = 0;
     prebuffering = TRUE;
+    vorbis_ip.set_status_buffering(TRUE);
     going = TRUE;
     eof = FALSE;
     buffer = g_malloc(buffer_length);