diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-11 20:14:10 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-11 20:14:10 +0000 |
commit | 5f570694522225758df3f638da077a06683e9668 (patch) | |
tree | 5c552e2ba5512f17c1741eb21fb441f728513f13 /apps | |
parent | 8f0a0fed4e40c1fb831744ca1cc34f20a93d85b4 (diff) | |
download | rockbox-5f570694522225758df3f638da077a06683e9668.tar.gz rockbox-5f570694522225758df3f638da077a06683e9668.zip |
Fixed buffering problem with some files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c index 739496ec73..b81ee986cb 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -431,8 +431,6 @@ void yield_codecs(void) | |||
431 | while (pcm_is_lowdata() && !ci.stop_codec && | 431 | while (pcm_is_lowdata() && !ci.stop_codec && |
432 | playing && queue_empty(&audio_queue)) | 432 | playing && queue_empty(&audio_queue)) |
433 | yield(); | 433 | yield(); |
434 | #else | ||
435 | yield(); | ||
436 | #endif | 434 | #endif |
437 | } | 435 | } |
438 | 436 | ||
@@ -658,7 +656,7 @@ bool audio_load_track(int offset, bool start_play, int peek_offset) | |||
658 | close(fd); | 656 | close(fd); |
659 | return false; | 657 | return false; |
660 | } | 658 | } |
661 | 659 | ||
662 | /* Load codec specific track tag information. */ | 660 | /* Load codec specific track tag information. */ |
663 | switch (tracks[track_widx].codectype) { | 661 | switch (tracks[track_widx].codectype) { |
664 | case AFMT_MPA_L2: | 662 | case AFMT_MPA_L2: |
@@ -666,7 +664,8 @@ bool audio_load_track(int offset, bool start_play, int peek_offset) | |||
666 | /* Should check the return value. */ | 664 | /* Should check the return value. */ |
667 | mp3info(&tracks[track_widx].id3, trackname, v1first); | 665 | mp3info(&tracks[track_widx].id3, trackname, v1first); |
668 | lseek(fd, 0, SEEK_SET); | 666 | lseek(fd, 0, SEEK_SET); |
669 | get_mp3file_info(fd, &tracks[track_widx].mp3data); | 667 | /* This is too slow to execute on some files. */ |
668 | // get_mp3file_info(fd, &tracks[track_widx].mp3data); | ||
670 | if (offset) { | 669 | if (offset) { |
671 | lseek(fd, offset, SEEK_SET); | 670 | lseek(fd, offset, SEEK_SET); |
672 | tracks[track_widx].id3.offset = offset; | 671 | tracks[track_widx].id3.offset = offset; |