decoder/vorbis: revert "faster tag scanning with ov_test_callback()"

This patch made ov_time_total() unusable, and MPD did not know the
duration of songs.
This commit is contained in:
Max Kellermann 2009-09-10 23:04:01 +02:00
parent e8569af35f
commit a99202a8a4
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.4 (2009/??/??)
* decoders:
- vorbis: revert "faster tag scanning with ov_test_callback()"
ver 0.15.3 (2009/08/29)

View File

@ -383,7 +383,7 @@ vorbis_tag_dup(const char *file)
return NULL;
}
if (ov_test_callbacks(fp, &vf, NULL, 0, OV_CALLBACKS_STREAMONLY) < 0) {
if (ov_open(fp, &vf, NULL, 0) < 0) {
fclose(fp);
return NULL;
}