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 <[email protected]>
This commit is contained in:
Jérôme Duval
2019-12-21 20:33:11 +00:00
committed by waddlesplash
parent b073975e18
commit 571148258b
@@ -1256,6 +1256,7 @@ MultiAudioNode::_HandleStart(const media_timed_event* event, bigtime_t lateness,
{ {
CALLED(); CALLED();
if (RunState() != B_STARTED) { if (RunState() != B_STARTED) {
_StartOutputThreadIfNeeded();
} }
return B_OK; return B_OK;
} }
@@ -1291,7 +1292,7 @@ MultiAudioNode::_HandleStop(const media_timed_event* event, bigtime_t lateness,
EventQueue()->FlushEvents(0, BTimedEventQueue::B_ALWAYS, true, EventQueue()->FlushEvents(0, BTimedEventQueue::B_ALWAYS, true,
BTimedEventQueue::B_HANDLE_BUFFER); BTimedEventQueue::B_HANDLE_BUFFER);
//_StopOutputThread(); _StopOutputThread();
return B_OK; return B_OK;
} }