mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-29 07:58:06 -04:00
spa: remove async members
Some node implementations have an `async` member, but these members are not written anywhere. So remove them.
This commit is contained in:
parent
84e7b744a6
commit
00b4717c6e
3 changed files with 5 additions and 8 deletions
|
|
@ -118,7 +118,6 @@ struct impl {
|
|||
struct spa_hook_list hooks;
|
||||
struct spa_callbacks callbacks;
|
||||
|
||||
bool async;
|
||||
struct spa_source timer_source;
|
||||
|
||||
bool started;
|
||||
|
|
@ -315,7 +314,7 @@ static int impl_node_set_io(void *object, uint32_t id, void *data, size_t size)
|
|||
|
||||
static void set_timer(struct impl *this, bool enabled)
|
||||
{
|
||||
if (this->async || this->props.live) {
|
||||
if (this->props.live) {
|
||||
struct itimerspec ts = {0};
|
||||
|
||||
if (enabled) {
|
||||
|
|
@ -339,7 +338,7 @@ static int read_timer(struct impl *this)
|
|||
uint64_t expirations;
|
||||
int res = 0;
|
||||
|
||||
if (this->async || this->props.live) {
|
||||
if (this->props.live) {
|
||||
if ((res = spa_system_timerfd_read(this->data_system,
|
||||
this->timer_source.fd, &expirations)) < 0) {
|
||||
if (res != -EAGAIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue