From cfe2dd4147afad124d2fab45b4ce08b0ab4c9c30 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 11 Nov 2021 02:45:52 -0800 Subject: [PATCH] use nullptr Signed-off-by: Rosen Penev --- src/output/plugins/PipeWireOutputPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/plugins/PipeWireOutputPlugin.cxx b/src/output/plugins/PipeWireOutputPlugin.cxx index 59a27c5dc..8c261bb8e 100644 --- a/src/output/plugins/PipeWireOutputPlugin.cxx +++ b/src/output/plugins/PipeWireOutputPlugin.cxx @@ -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;