From 3d0b7c69016dc0dc1a4a81131340ac3024ecd356 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Fri, 28 Mar 2008 11:43:08 +0000 Subject: [PATCH] Oops, another pondlife puddle of red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16862 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 9 +++++---- 1 file 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) afmt, fname ? fname : ""); #else /* !HAVE_RECORDING */ /* Always decoder */ - if ((unsigned)cod_spec >= AFMT_NUM_CODECS) - cod_spec = AFMT_UNKNOWN; - fname = audio_formats[cod_spec].codec_root_fn; - logf("Codec: %d - %s", cod_spec, fname ? fname : ""); + int afmt = cod_spec; + if ((unsigned)afmt >= AFMT_NUM_CODECS) + afmt = AFMT_UNKNOWN; + fname = audio_formats[afmt].codec_root_fn; + logf("Codec: %d - %s", afmt, fname ? fname : ""); #endif /* HAVE_RECORDING */ return fname;