Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
57e95ea6f4 | ||
![]() |
442d2e74e3 | ||
![]() |
28736414a8 | ||
![]() |
e98bd55cbf | ||
![]() |
a1a03deed2 | ||
![]() |
0dcd865c2e |
8
NEWS
8
NEWS
@@ -1,3 +1,11 @@
|
||||
ver 0.15.10 (2010/05/30)
|
||||
* input:
|
||||
- mms: fix memory leak in error handler
|
||||
- mms: initialize the "eof" attribute
|
||||
* decoders:
|
||||
- mad: properly calculate ID3 size without libid3tag
|
||||
|
||||
|
||||
ver 0.15.9 (2010/03/21)
|
||||
* decoders:
|
||||
- mad: fix crash when seeking at end of song
|
||||
|
@@ -1,5 +1,5 @@
|
||||
AC_PREREQ(2.60)
|
||||
AC_INIT(mpd, 0.15.9, musicpd-dev-team@lists.sourceforge.net)
|
||||
AC_INIT(mpd, 0.15.10, musicpd-dev-team@lists.sourceforge.net)
|
||||
AC_CONFIG_SRCDIR([src/main.c])
|
||||
AM_INIT_AUTOMAKE([foreign 1.9 dist-bzip2])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
@@ -425,7 +425,27 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize,
|
||||
/* This code is enabled when libid3tag is disabled. Instead
|
||||
of parsing the ID3 frame, it just skips it. */
|
||||
|
||||
mad_stream_skip(&data->stream, tagsize);
|
||||
size_t count = data->stream.bufend - data->stream.this_frame;
|
||||
|
||||
if (tagsize <= count) {
|
||||
mad_stream_skip(&data->stream, tagsize);
|
||||
} else {
|
||||
mad_stream_skip(&data->stream, count);
|
||||
|
||||
while (count < tagsize) {
|
||||
size_t len = tagsize - count;
|
||||
char ignored[1024];
|
||||
if (len > sizeof(ignored))
|
||||
len = sizeof(ignored);
|
||||
|
||||
len = decoder_read(data->decoder, data->input_stream,
|
||||
ignored, len);
|
||||
if (len == 0)
|
||||
break;
|
||||
else
|
||||
count += len;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -433,16 +453,16 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize,
|
||||
/**
|
||||
* This function emulates libid3tag when it is disabled. Instead of
|
||||
* doing a real analyzation of the frame, it just checks whether the
|
||||
* frame begins with the string "ID3". If so, it returns the full
|
||||
* length.
|
||||
* frame begins with the string "ID3". If so, it returns the length
|
||||
* of the ID3 frame.
|
||||
*/
|
||||
static signed long
|
||||
id3_tag_query(const void *p0, size_t length)
|
||||
{
|
||||
const char *p = p0;
|
||||
|
||||
return length > 3 && memcmp(p, "ID3", 3) == 0
|
||||
? length
|
||||
return length >= 10 && memcmp(p, "ID3", 3) == 0
|
||||
? (p[8] << 7) + p[9] + 10
|
||||
: 0;
|
||||
}
|
||||
#endif /* !HAVE_ID3TAG */
|
||||
|
@@ -49,10 +49,13 @@ input_mms_open(struct input_stream *is, const char *url)
|
||||
m = g_new(struct input_mms, 1);
|
||||
m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024);
|
||||
if (m->mms == NULL) {
|
||||
g_free(m);
|
||||
g_warning("mmsx_connect() failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
m->eof = false;
|
||||
|
||||
/* XX is this correct? at least this selects the ffmpeg
|
||||
decoder, which seems to work fine*/
|
||||
is->mime = g_strdup("audio/x-ms-wma");
|
||||
|
Reference in New Issue
Block a user