# HG changeset patch # User nenolod # Date 1169717949 28800 # Node ID e045af8665c6fdfa3a2e3988870287963c2d61e3 # Parent 282bede45eef253e4831bb9a233f70d0f5fea413 [svn] - fix a warning - as far as i can tell, fix chained streams too diff -r 282bede45eef -r e045af8665c6 ChangeLog --- a/ChangeLog Tue Jan 23 20:19:01 2007 -0800 +++ b/ChangeLog Thu Jan 25 01:39:09 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-24 04:19:01 +0000 Daniel Barkalow + revision [1172] + Support for writing downloaded data to a file (no UI provided yet). + + trunk/src/curl/curl.c | 38 ++++++++++++++++++++++++++++++-------- + 1 file changed, 30 insertions(+), 8 deletions(-) + + 2007-01-24 00:44:29 +0000 Giacomo Lozito revision [1170] - made popup window use audacious_fileinfopopup_show_from_title if track_name and song length is not available diff -r 282bede45eef -r e045af8665c6 src/vorbis/fileinfo.c --- a/src/vorbis/fileinfo.c Tue Jan 23 20:19:01 2007 -0800 +++ b/src/vorbis/fileinfo.c Thu Jan 25 01:39:09 2007 -0800 @@ -37,7 +37,7 @@ #include -#include "audacious/util.h" +#include #include #include #include diff -r 282bede45eef -r e045af8665c6 src/vorbis/vorbis.c --- a/src/vorbis/vorbis.c Tue Jan 23 20:19:01 2007 -0800 +++ b/src/vorbis/vorbis.c Thu Jan 25 01:39:09 2007 -0800 @@ -363,18 +363,15 @@ pcmout, rg_scale); } else { - do { - bytes = - ov_read(&vf, pcmout, sizeof(pcmout), + bytes = ov_read(&vf, pcmout, sizeof(pcmout), (int) (G_BYTE_ORDER == G_BIG_ENDIAN), - 2, 1, ¤t_section); - } while (bytes == OV_HOLE); + 2, 1, ¤t_section); } /* * We got some sort of error. Bail. */ - if (bytes <= 0) { + if (bytes <= 0 && bytes != OV_HOLE) { g_mutex_unlock(vf_mutex); vorbis_ip.output->buffer_free(); vorbis_ip.output->buffer_free(); @@ -477,7 +474,10 @@ vorbis_is_streaming = ((time = ov_time_total(&vf, -1)) <= 1.); if (vorbis_is_streaming) + { time = -1; + vf.seekable = FALSE; /* XXX: don't ask. -nenolod */ + } if (vi->channels > 2) { vorbis_eos = TRUE;