Loading include/media/VolumeShaper.h +1 −1 Original line number Diff line number Diff line Loading @@ -1099,7 +1099,7 @@ public: * internal to the VolumeHandler. */ void setIdIfNecessary(const sp<VolumeShaper::Configuration> &configuration) { if (configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { if (configuration && configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { const int id = configuration->getId(); if (id == -1) { // Reassign to a unique id, skipping system ids. Loading media/libmediaplayerservice/MediaPlayerService.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -2611,6 +2611,16 @@ VolumeShaper::Status MediaPlayerService::AudioOutput::applyVolumeShaper( Mutex::Autolock lock(mLock); ALOGV("AudioOutput::applyVolumeShaper"); if (configuration == nullptr) { ALOGE("AudioOutput::applyVolumeShaper Null configuration parameter"); return VolumeShaper::Status(BAD_VALUE); } if (operation == nullptr) { ALOGE("AudioOutput::applyVolumeShaper Null operation parameter"); return VolumeShaper::Status(BAD_VALUE); } mVolumeHandler->setIdIfNecessary(configuration); VolumeShaper::Status status; Loading Loading
include/media/VolumeShaper.h +1 −1 Original line number Diff line number Diff line Loading @@ -1099,7 +1099,7 @@ public: * internal to the VolumeHandler. */ void setIdIfNecessary(const sp<VolumeShaper::Configuration> &configuration) { if (configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { if (configuration && configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { const int id = configuration->getId(); if (id == -1) { // Reassign to a unique id, skipping system ids. Loading
media/libmediaplayerservice/MediaPlayerService.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -2611,6 +2611,16 @@ VolumeShaper::Status MediaPlayerService::AudioOutput::applyVolumeShaper( Mutex::Autolock lock(mLock); ALOGV("AudioOutput::applyVolumeShaper"); if (configuration == nullptr) { ALOGE("AudioOutput::applyVolumeShaper Null configuration parameter"); return VolumeShaper::Status(BAD_VALUE); } if (operation == nullptr) { ALOGE("AudioOutput::applyVolumeShaper Null operation parameter"); return VolumeShaper::Status(BAD_VALUE); } mVolumeHandler->setIdIfNecessary(configuration); VolumeShaper::Status status; Loading