diff src/mpg123/mpg123.c @ 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 12346b051297
children 1bded2e3d57b
line wrap: on
line diff
--- 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);