CubebAudioStream: Remove leftover field

This commit is contained in:
Stenzek 2024-08-10 13:15:32 +10:00
parent 34df233a95
commit b72e622ae0
No known key found for this signature in database

View file

@ -15,11 +15,6 @@
#include "cubeb/cubeb.h" #include "cubeb/cubeb.h"
#include "fmt/format.h" #include "fmt/format.h"
#ifdef _WIN32
#include "common/windows_headers.h"
#include <objbase.h>
#endif
Log_SetChannel(CubebAudioStream); Log_SetChannel(CubebAudioStream);
namespace { namespace {
@ -44,10 +39,6 @@ private:
cubeb* m_context = nullptr; cubeb* m_context = nullptr;
cubeb_stream* stream = nullptr; cubeb_stream* stream = nullptr;
#ifdef _WIN32
bool m_com_initialized_by_us = false;
#endif
}; };
} // namespace } // namespace
@ -111,14 +102,6 @@ void CubebAudioStream::DestroyContextAndStream()
cubeb_destroy(m_context); cubeb_destroy(m_context);
m_context = nullptr; m_context = nullptr;
} }
#ifdef _WIN32
if (m_com_initialized_by_us)
{
CoUninitialize();
m_com_initialized_by_us = false;
}
#endif
} }
bool CubebAudioStream::Initialize(const char* driver_name, const char* device_name, Error* error) bool CubebAudioStream::Initialize(const char* driver_name, const char* device_name, Error* error)