Qt: Just don't tear down proxy ring FIFO until the object is destroyed

This commit is contained in:
Vicki Pfau 2023-04-25 01:37:01 -07:00
parent 399ace760c
commit 18d0ad6ff9
1 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@ VideoProxy::VideoProxy() {
m_logger.unlock = &cbind<&VideoProxy::unlock>;
m_logger.wait = &cbind<&VideoProxy::wait>;
m_logger.wake = &callback<void, int>::func<&VideoProxy::wake>;
RingFIFOInit(&m_dirtyQueue, 0x80000);
m_logger.writeData = &callback<bool, const void*, size_t>::func<&VideoProxy::writeData>;
m_logger.readData = &callback<bool, void*, size_t, bool>::func<&VideoProxy::readData>;
@ -42,6 +43,7 @@ VideoProxy::VideoProxy() {
VideoProxy::~VideoProxy() {
mVideoProxyBackendDeinit(&m_backend);
RingFIFODeinit(&m_dirtyQueue);
}
void VideoProxy::attach(CoreController* controller) {
@ -71,7 +73,6 @@ void VideoProxy::processCommands() {
}
void VideoProxy::init() {
RingFIFOInit(&m_dirtyQueue, 0x80000);
}
void VideoProxy::reset() {
@ -82,7 +83,6 @@ void VideoProxy::reset() {
}
void VideoProxy::deinit() {
RingFIFODeinit(&m_dirtyQueue);
}
bool VideoProxy::writeData(const void* data, size_t length) {