use nullptr
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
a8c77a6fba
commit
cfe2dd4147
@ -153,7 +153,7 @@ class PipeWireOutput final : AudioOutput {
|
|||||||
public:
|
public:
|
||||||
static AudioOutput *Create(EventLoop &,
|
static AudioOutput *Create(EventLoop &,
|
||||||
const ConfigBlock &block) {
|
const ConfigBlock &block) {
|
||||||
pw_init(0, nullptr);
|
pw_init(nullptr, nullptr);
|
||||||
|
|
||||||
return new PipeWireOutput(block);
|
return new PipeWireOutput(block);
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ private:
|
|||||||
uint32_t id,
|
uint32_t id,
|
||||||
const struct spa_pod *param) noexcept
|
const struct spa_pod *param) noexcept
|
||||||
{
|
{
|
||||||
if (id != SPA_PARAM_Format || param == NULL)
|
if (id != SPA_PARAM_Format || param == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto &o = *(PipeWireOutput *)data;
|
auto &o = *(PipeWireOutput *)data;
|
||||||
|
Loading…
Reference in New Issue
Block a user