Skip to content

Commit 2ffb761

Browse files
committed
[ci] Fix for older pipewire versions
1 parent 20fe26d commit 2ffb761

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

src/ossia/audio/pipewire_protocol.hpp

+16-10
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ struct pipewire_context
356356
.bound_id = {},
357357
.add_mem = {},
358358
.remove_mem = {},
359+
#if defined(PW_CORE_EVENT_BOUND_PROPS)
359360
.bound_props = {},
361+
#endif
360362
};
361363

362364
spa_zero(core_listener);
@@ -541,16 +543,20 @@ class pipewire_audio_protocol : public audio_engine
541543
{
542544
auto& pw = libpipewire::instance();
543545

544-
static constexpr const struct pw_filter_events filter_events
545-
= {.version = PW_VERSION_FILTER_EVENTS,
546-
.destroy = {},
547-
.state_changed = {},
548-
.io_changed = {},
549-
.param_changed = {},
550-
.add_buffer = {},
551-
.remove_buffer = {},
552-
.process = on_process,
553-
.drained = {}};
546+
static constexpr const struct pw_filter_events filter_events = {
547+
.version = PW_VERSION_FILTER_EVENTS,
548+
.destroy = {},
549+
.state_changed = {},
550+
.io_changed = {},
551+
.param_changed = {},
552+
.add_buffer = {},
553+
.remove_buffer = {},
554+
.process = on_process,
555+
.drained = {},
556+
#if PW_VERSION_CORE > 3
557+
.command = {},
558+
#endif
559+
};
554560

555561
this->loop = loop;
556562

0 commit comments

Comments
 (0)