diff options
author | Steve Bavin <pondlife@pondlife.me> | 2008-03-28 11:43:08 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2008-03-28 11:43:08 +0000 |
commit | 3d0b7c69016dc0dc1a4a81131340ac3024ecd356 (patch) | |
tree | 194299a2301a9138953d48b110ed4273dbb66614 | |
parent | 20d57a30e3aef38c35e9c397326bc97633adc8a5 (diff) | |
download | rockbox-3d0b7c69016dc0dc1a4a81131340ac3024ecd356.tar.gz rockbox-3d0b7c69016dc0dc1a4a81131340ac3024ecd356.zip |
Oops, another pondlife puddle of red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16862 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playback.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c index 4fd27ce72e..de58e8b40d 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -838,10 +838,11 @@ const char *get_codec_filename(const int cod_spec) | |||
838 | afmt, fname ? fname : "<unknown>"); | 838 | afmt, fname ? fname : "<unknown>"); |
839 | #else /* !HAVE_RECORDING */ | 839 | #else /* !HAVE_RECORDING */ |
840 | /* Always decoder */ | 840 | /* Always decoder */ |
841 | if ((unsigned)cod_spec >= AFMT_NUM_CODECS) | 841 | int afmt = cod_spec; |
842 | cod_spec = AFMT_UNKNOWN; | 842 | if ((unsigned)afmt >= AFMT_NUM_CODECS) |
843 | fname = audio_formats[cod_spec].codec_root_fn; | 843 | afmt = AFMT_UNKNOWN; |
844 | logf("Codec: %d - %s", cod_spec, fname ? fname : "<unknown>"); | 844 | fname = audio_formats[afmt].codec_root_fn; |
845 | logf("Codec: %d - %s", afmt, fname ? fname : "<unknown>"); | ||
845 | #endif /* HAVE_RECORDING */ | 846 | #endif /* HAVE_RECORDING */ |
846 | 847 | ||
847 | return fname; | 848 | return fname; |