mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-09 08:21:08 -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_hook_list hooks;
|
||||||
struct spa_callbacks callbacks;
|
struct spa_callbacks callbacks;
|
||||||
|
|
||||||
bool async;
|
|
||||||
struct spa_source timer_source;
|
struct spa_source timer_source;
|
||||||
|
|
||||||
bool started;
|
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)
|
static void set_timer(struct impl *this, bool enabled)
|
||||||
{
|
{
|
||||||
if (this->async || this->props.live) {
|
if (this->props.live) {
|
||||||
struct itimerspec ts = {0};
|
struct itimerspec ts = {0};
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
|
@ -339,7 +338,7 @@ static int read_timer(struct impl *this)
|
||||||
uint64_t expirations;
|
uint64_t expirations;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
if (this->async || this->props.live) {
|
if (this->props.live) {
|
||||||
if ((res = spa_system_timerfd_read(this->data_system,
|
if ((res = spa_system_timerfd_read(this->data_system,
|
||||||
this->timer_source.fd, &expirations)) < 0) {
|
this->timer_source.fd, &expirations)) < 0) {
|
||||||
if (res != -EAGAIN)
|
if (res != -EAGAIN)
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@ struct impl {
|
||||||
struct spa_hook_list hooks;
|
struct spa_hook_list hooks;
|
||||||
struct spa_callbacks callbacks;
|
struct spa_callbacks callbacks;
|
||||||
|
|
||||||
bool async;
|
|
||||||
struct spa_source *timer_source;
|
struct spa_source *timer_source;
|
||||||
|
|
||||||
bool started;
|
bool started;
|
||||||
|
|
@ -262,7 +261,7 @@ static int fill_buffer(struct impl *this, struct buffer *b)
|
||||||
|
|
||||||
static void set_timer(struct impl *this, bool enabled)
|
static void set_timer(struct impl *this, bool enabled)
|
||||||
{
|
{
|
||||||
if (this->async || this->props.live) {
|
if (this->props.live) {
|
||||||
struct timespec ts = {0};
|
struct timespec ts = {0};
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@ struct impl {
|
||||||
struct spa_hook_list hooks;
|
struct spa_hook_list hooks;
|
||||||
struct spa_callbacks callbacks;
|
struct spa_callbacks callbacks;
|
||||||
|
|
||||||
bool async;
|
|
||||||
struct spa_source timer_source;
|
struct spa_source timer_source;
|
||||||
|
|
||||||
bool started;
|
bool started;
|
||||||
|
|
@ -241,7 +240,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
||||||
|
|
||||||
static void set_timer(struct impl *this, bool enabled)
|
static void set_timer(struct impl *this, bool enabled)
|
||||||
{
|
{
|
||||||
if (this->async || this->props.live) {
|
if (this->props.live) {
|
||||||
struct itimerspec ts = {0};
|
struct itimerspec ts = {0};
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
|
@ -265,7 +264,7 @@ static int read_timer(struct impl *this)
|
||||||
uint64_t expirations;
|
uint64_t expirations;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
if (this->async || this->props.live) {
|
if (this->props.live) {
|
||||||
if ((res = spa_system_timerfd_read(this->data_system,
|
if ((res = spa_system_timerfd_read(this->data_system,
|
||||||
this->timer_source.fd, &expirations)) < 0) {
|
this->timer_source.fd, &expirations)) < 0) {
|
||||||
if (res != -EAGAIN)
|
if (res != -EAGAIN)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue