changeset 225:6a512dedcfbe trunk

[svn] - set mpgdec_length to -1 on a stream with no endpoint
author nenolod
date Sun, 05 Nov 2006 13:00:47 -0800
parents f6bdf10fe48c
children 514c7adecf39
files ChangeLog src/mpg123/mpg123.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 05 12:50:07 2006 -0800
+++ b/ChangeLog	Sun Nov 05 13:00:47 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-05 20:50:07 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [448]
+  - shoutcast streams don't have a length.
+  
+  trunk/src/mpg123/http.c |   12 +++++++-----
+  1 file changed, 7 insertions(+), 5 deletions(-)
+
+
 2006-11-05 20:36:34 +0000  William Pitcock <nenolod@nenolod.net>
   revision [446]
   - fix tuple breakage
--- a/src/mpg123/mpg123.c	Sun Nov 05 12:50:07 2006 -0800
+++ b/src/mpg123/mpg123.c	Sun Nov 05 13:00:47 2006 -0800
@@ -774,8 +774,9 @@
 	    }
         }
         else {
-            if (!mpgdec_title)
+            if (CHECK_STREAM_URI(filename))
                 mpgdec_title = mpgdec_http_get_title(filename);
+	    mpgdec_length = -1;
         }
 
         set_synth_functions(&fr);