Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351f7e2a authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Gerrit Code Review
Browse files

Merge "Use `ro.boot.qemu` to check if the device is an emulator"

parents 532501a2 a3f34461
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1822,8 +1822,7 @@ MediaPlayerService::AudioOutput::~AudioOutput()
//static
void MediaPlayerService::AudioOutput::setMinBufferCount()
{
    char value[PROPERTY_VALUE_MAX];
    if (property_get("ro.kernel.qemu", value, 0)) {
    if (property_get_bool("ro.boot.qemu", false)) {
        mIsOnEmulator = true;
        mMinBufferCount = 12;  // to prevent systematic buffer underrun for emulator
    }