mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
null-sink: fix null sink scheduling
The null sink pulls in data and provides data after it got the data in _process. See #472 #442
This commit is contained in:
parent
0f528dc73c
commit
c6f94def08
1 changed files with 2 additions and 3 deletions
|
|
@ -242,8 +242,7 @@ static void on_timeout(struct spa_source *source)
|
||||||
this->clock->next_nsec = this->next_time;
|
this->clock->next_nsec = this->next_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
spa_node_call_ready(&this->callbacks,
|
spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA);
|
||||||
SPA_STATUS_HAVE_DATA | SPA_STATUS_NEED_DATA);
|
|
||||||
|
|
||||||
set_timer(this, this->next_time);
|
set_timer(this, this->next_time);
|
||||||
}
|
}
|
||||||
|
|
@ -659,7 +658,7 @@ static int impl_node_process(void *object)
|
||||||
io->status = -EINVAL;
|
io->status = -EINVAL;
|
||||||
return io->status;
|
return io->status;
|
||||||
}
|
}
|
||||||
io->status = SPA_STATUS_NEED_DATA;
|
io->status = SPA_STATUS_OK;
|
||||||
return SPA_STATUS_HAVE_DATA;
|
return SPA_STATUS_HAVE_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue