projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c31cec7
)
examples/nxplayer: fix build error when CONFIG_AUDIO_FORMAT_MIDI=y
author
Bongryul Lee
<bongryul.lee@samsung.com>
Fri, 4 Aug 2017 06:15:18 +0000
(15:15 +0900)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/apps/examples/nxplayer/nxplayer.c
b/apps/examples/nxplayer/nxplayer.c
index
1eb93a0
..
4fc880c
100644
(file)
--- a/
apps/examples/nxplayer/nxplayer.c
+++ b/
apps/examples/nxplayer/nxplayer.c
@@
-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);