summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-14 18:25:42 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-14 18:25:42 +0000
commitc73669639051a504094a0de71ae22aa402a8b1b7 (patch)
treefbe4d739fff34aa125bf5b23b511bbe0458221f6 /apps
parentb6ed0b606fe605fcb75b05578047dba747e9b9a3 (diff)
downloadrockbox-c73669639051a504094a0de71ae22aa402a8b1b7.tar.gz
rockbox-c73669639051a504094a0de71ae22aa402a8b1b7.tar.bz2
rockbox-c73669639051a504094a0de71ae22aa402a8b1b7.zip
Minor clean up in playback.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25178 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 81cd31ec23..c4fb14ba3e 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1352,38 +1352,26 @@ static void audio_finish_load_track(void)
case AFMT_MPA_L3:
if (offset > 0) {
file_offset = offset;
- track_id3->offset = offset;
}
break;
case AFMT_WAVPACK:
if (offset > 0) {
file_offset = offset;
- track_id3->offset = offset;
track_id3->elapsed = track_id3->length / 2;
}
break;
- case AFMT_OGG_VORBIS:
- case AFMT_SPEEX:
- case AFMT_FLAC:
- case AFMT_PCM_WAV:
- case AFMT_A52:
- case AFMT_MP4_AAC:
- case AFMT_MP4_ALAC:
- case AFMT_MPC:
- case AFMT_APE:
- case AFMT_WMA:
- if (offset > 0)
- track_id3->offset = offset;
- break;
-
case AFMT_NSF:
case AFMT_SPC:
case AFMT_SID:
logf("Loading atomic %d",track_id3->codectype);
type = TYPE_ATOMIC_AUDIO;
break;
+
+ default:
+ /* no special treatment needed */
+ break;
}
logf("load track: %s", track_id3->path);