File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -586,9 +586,16 @@ update_state(cubeb_stream * stm)
586586 }
587587 break ;
588588 case stream_state::STOPPING:
589- assert (!istate || istate == AAUDIO_STREAM_STATE_PAUSING ||
589+ // If stream_stop happens while the stream is still starting, we may see
590+ // STARTING/STARTED, ignore these and handle STATE_STOPPED once we reach
591+ // PAUSED.
592+ assert (!istate || istate == AAUDIO_STREAM_STATE_STARTING ||
593+ istate == AAUDIO_STREAM_STATE_STARTED ||
594+ istate == AAUDIO_STREAM_STATE_PAUSING ||
590595 istate == AAUDIO_STREAM_STATE_PAUSED);
591- assert (!ostate || ostate == AAUDIO_STREAM_STATE_PAUSING ||
596+ assert (!ostate || ostate == AAUDIO_STREAM_STATE_STARTING ||
597+ ostate == AAUDIO_STREAM_STATE_STARTED ||
598+ ostate == AAUDIO_STREAM_STATE_PAUSING ||
592599 ostate == AAUDIO_STREAM_STATE_PAUSED);
593600 if ((!istate || istate == AAUDIO_STREAM_STATE_PAUSED) &&
594601 (!ostate || ostate == AAUDIO_STREAM_STATE_PAUSED)) {
You can’t perform that action at this time.
0 commit comments