diff options
author | 2011-03-03 22:08:18 +0100 | |
---|---|---|
committer | 2011-03-03 22:08:18 +0100 | |
commit | 4a458fd975340d1e81f8ed4376d631a86bdaacc7 (patch) | |
tree | b9d84e9f33a0c97eab37573572ed28327c60def5 /plugins/aac | |
parent | da1faaf258338f3d2d91ce0ffe9d013336407339 (diff) |
fixed few bugs related to aac streaming
Diffstat (limited to 'plugins/aac')
-rw-r--r-- | plugins/aac/aac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 71900529..ca76340a 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -834,8 +834,8 @@ aac_read (DB_fileinfo_t *_info, char *bytes, int size) { samples = NeAACDecDecode (info->dec, &info->frame_info, info->buffer, info->remaining); if (!samples) { trace ("NeAACDecDecode failed, consumed=%d\n", info->frame_info.bytesconsumed); - if (info->num_errors > 10 || info->frame_info.bytesconsumed == 0) { - trace ("NeAACDecDecode failed 3 times, interrupting\n"); + if (info->num_errors > 10) { + trace ("NeAACDecDecode failed %d times, interrupting\n", info->num_errors); break; } info->num_errors++; @@ -1117,7 +1117,7 @@ aac_insert (DB_playItem_t *after, const char *fname) { it->fname = strdup (fname); it->filetype = ftype; deadbeef->pl_set_item_duration (it, duration); -// trace ("duration: %f sec\n", duration); + trace ("duration: %f sec\n", duration); // read tags if (mp4) { |