apps/nxplayer: add ioctl stop when play completed
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
This commit is contained in:
parent
9bfe138087
commit
8ebab7657f
@ -1121,6 +1121,13 @@ static FAR void *nxplayer_playthread(pthread_addr_t pvarg)
|
|||||||
audinfo("Play complete. outstanding=%d\n", outstanding);
|
audinfo("Play complete. outstanding=%d\n", outstanding);
|
||||||
DEBUGASSERT(outstanding == 0);
|
DEBUGASSERT(outstanding == 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_AUDIO_MULTI_SESSION
|
||||||
|
ioctl(pplayer->dev_fd, AUDIOIOC_STOP,
|
||||||
|
(unsigned long)pplayer->session);
|
||||||
|
#else
|
||||||
|
ioctl(pplayer->dev_fd, AUDIOIOC_STOP, 0);
|
||||||
|
#endif
|
||||||
running = false;
|
running = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user