Use async logging while streaming only
The benefits of reliable output outweigh performance concerns during non-streaming activities.
This commit is contained in:
parent
b1232e0ed4
commit
bd6235efba
4 changed files with 49 additions and 2 deletions
|
|
@ -417,3 +417,15 @@ int StreamUtils::getDrmFd(bool preferRenderNode)
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
extern QAtomicInt g_AsyncLoggingEnabled;
|
||||
|
||||
void StreamUtils::enterAsyncLoggingMode()
|
||||
{
|
||||
g_AsyncLoggingEnabled.ref();
|
||||
}
|
||||
|
||||
void StreamUtils::exitAsyncLoggingMode()
|
||||
{
|
||||
g_AsyncLoggingEnabled.deref();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue