hmulti_audio.media_addon: stop the output thread on BTimedEventQueue::B_STOP

fix #15263

Change-Id: Icd305668365067a89f3f952465bfe2aef84e8d0e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2045
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Jérôme Duval 2019-12-21 21:09:30 +01:00 committed by waddlesplash
parent b073975e18
commit 571148258b

View File

@ -1256,6 +1256,7 @@ MultiAudioNode::_HandleStart(const media_timed_event* event, bigtime_t lateness,
{
CALLED();
if (RunState() != B_STARTED) {
_StartOutputThreadIfNeeded();
}
return B_OK;
}
@ -1291,7 +1292,7 @@ MultiAudioNode::_HandleStop(const media_timed_event* event, bigtime_t lateness,
EventQueue()->FlushEvents(0, BTimedEventQueue::B_ALWAYS, true,
BTimedEventQueue::B_HANDLE_BUFFER);
//_StopOutputThread();
_StopOutputThread();
return B_OK;
}