diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-22 15:01:25 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-22 15:01:25 +0200 |
commit | c1bfa37ce69cf3966cbcca637645fb7043baa124 (patch) | |
tree | 902715ab9b708a58d520c2177226ed6f824076f5 /plugins | |
parent | a5af3bc3fe335d1349170ed49dda6517b738b417 (diff) |
better error handling for multitrack ogg files
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vorbis/vorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 6bbaa01b..a7b95b29 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -391,8 +391,8 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) { for (int stream = 0; stream < nstreams; stream++) { vi = ov_info (&vorbis_file, stream); if (!vi) { // not a vorbis stream - trace ("vorbis: failed to ov_open %s\n", fname); - return NULL; + trace ("vorbis: ov_info failed for file %s stream %d\n", fname, stream); + continue; } float duration = ov_time_total (&vorbis_file, stream); int totalsamples = ov_pcm_total (&vorbis_file, stream); |