mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
stream: add a method to check if driving or not
When the node is driving, we need to call trigger_process() otherwise we don't and we simply need to wait for the process() to be called, triggered by the driver node. See #1484
This commit is contained in:
parent
3c97090ba0
commit
b030a4e7da
5 changed files with 32 additions and 14 deletions
|
|
@ -208,8 +208,9 @@ static void on_stream_state_changed(void *_data, enum pw_stream_state old, enum
|
|||
interval.tv_sec = 0;
|
||||
interval.tv_nsec = 40 * SPA_NSEC_PER_MSEC;
|
||||
|
||||
pw_loop_update_timer(pw_thread_loop_get_loop(data->loop),
|
||||
data->timer, &timeout, &interval, false);
|
||||
if (pw_stream_is_driving(data->stream))
|
||||
pw_loop_update_timer(pw_thread_loop_get_loop(data->loop),
|
||||
data->timer, &timeout, &interval, false);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue