use nullptr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-11-11 02:45:52 -08:00
parent a8c77a6fba
commit cfe2dd4147

View File

@ -153,7 +153,7 @@ class PipeWireOutput final : AudioOutput {
public:
static AudioOutput *Create(EventLoop &,
const ConfigBlock &block) {
pw_init(0, nullptr);
pw_init(nullptr, nullptr);
return new PipeWireOutput(block);
}
@ -250,7 +250,7 @@ private:
uint32_t id,
const struct spa_pod *param) noexcept
{
if (id != SPA_PARAM_Format || param == NULL)
if (id != SPA_PARAM_Format || param == nullptr)
return;
auto &o = *(PipeWireOutput *)data;