examples/nxplayer: fix build error when CONFIG_AUDIO_FORMAT_MIDI=y
authorBongryul Lee <bongryul.lee@samsung.com>
Fri, 4 Aug 2017 06:15:18 +0000 (15:15 +0900)
committerIvan Galkin <ivan.galkin@samsung.com>
Sun, 27 Aug 2017 06:24:43 +0000 (15:24 +0900)
nxplayer_getmidisubformat() did not consider default case in the switch
statement.

Change-Id: I8e0fb2d2c72caab8038eaddeb5886128e0037051
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
apps/examples/nxplayer/nxplayer.c

index 1eb93a0..4fc880c 100644 (file)
@@ -373,6 +373,10 @@ int nxplayer_getmidisubformat(FAR FILE *fd)
        case 2:
                ret = AUDIO_SUBFMT_MIDI_2;
                break;
+
+       default:
+               ret = AUDIO_SUBFMT_END;
+               break;
        }
        fseek(fd, 0, SEEK_SET);