summaryrefslogtreecommitdiff
path: root/apps/system
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-24 15:10:12 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-24 15:10:12 -0600
commitf955d435ab125e8adb85dddda4f0b6ecee824b6a (patch)
treefa192329a4bba116b721d42a05acae9fce124382 /apps/system
parent081b6917f5c2983ca22309f9fee80acbb7de1afd (diff)
downloadnuttx-f955d435ab125e8adb85dddda4f0b6ecee824b6a.tar.gz
nuttx-f955d435ab125e8adb85dddda4f0b6ecee824b6a.tar.bz2
nuttx-f955d435ab125e8adb85dddda4f0b6ecee824b6a.zip
Trivial things from the last commit left in the editor
Diffstat (limited to 'apps/system')
-rw-r--r--apps/system/nxplayer/nxplayer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/system/nxplayer/nxplayer.c b/apps/system/nxplayer/nxplayer.c
index 039907236..cf834f852 100644
--- a/apps/system/nxplayer/nxplayer.c
+++ b/apps/system/nxplayer/nxplayer.c
@@ -605,13 +605,17 @@ static void *nxplayer_playthread(pthread_addr_t pvarg)
/* Create our audio pipeline buffers to use for queueing up data */
for (x = 0; x < buf_info.nbuffers; x++)
+ {
pBuffers[x] = NULL;
+ }
for (x = 0; x < buf_info.nbuffers; x++)
#else /* CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFER */
for (x = 0; x < CONFIG_AUDIO_NUM_BUFFERS; x++)
+ {
pBuffers[x] = NULL;
+ }
for (x = 0; x < CONFIG_AUDIO_NUM_BUFFERS; x++)
#endif /* CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFER */
@@ -725,7 +729,6 @@ static void *nxplayer_playthread(pthread_addr_t pvarg)
/* An audio buffer is being dequeued by the driver */
case AUDIO_MSG_DEQUEUE:
-
/* Read data from the file directly into this buffer
* and re-enqueue it.
*/
@@ -748,7 +751,6 @@ static void *nxplayer_playthread(pthread_addr_t pvarg)
/* Someone wants to stop the playback. */
case AUDIO_MSG_STOP:
-
/* Send a stop message to the device */
#ifdef CONFIG_AUDIO_MULTI_SESSION
@@ -764,7 +766,6 @@ static void *nxplayer_playthread(pthread_addr_t pvarg)
/* Message indicating the playback is complete */
case AUDIO_MSG_COMPLETE:
-
running = false;
break;