| Index: media/audio/openbsd/audio_manager_openbsd.cc
|
| diff --git a/media/audio/openbsd/audio_manager_openbsd.cc b/media/audio/openbsd/audio_manager_openbsd.cc
|
| index 1ef93980762e4acb451a3173c691a1dde55555c1..552d528f40ace62c9f0d61067ae6e1fc75c5426d 100644
|
| --- a/media/audio/openbsd/audio_manager_openbsd.cc
|
| +++ b/media/audio/openbsd/audio_manager_openbsd.cc
|
| @@ -46,15 +46,7 @@ AudioManagerOpenBSD::AudioManagerOpenBSD() {
|
| }
|
|
|
| AudioManagerOpenBSD::~AudioManagerOpenBSD() {
|
| - // Make sure we stop the thread first. If we allow the default destructor to
|
| - // destroy the members, we may destroy audio streams before stopping the
|
| - // thread, resulting an unexpected behavior.
|
| - // This way we make sure activities of the audio streams are all stopped
|
| - // before we destroy them.
|
| - audio_thread_.Stop();
|
| -
|
| - // Free output dispatchers, closing all remaining open streams.
|
| - output_dispatchers_.clear();
|
| + Shutdown();
|
| }
|
|
|
| void AudioManagerOpenBSD::Init() {
|
|
|