mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
impl-node: always resume non-driver nodes when finished
We don't really have a mechanism to do async resume and OK is now emitted by the filter when nothing happened.
This commit is contained in:
parent
7da1094819
commit
9192892d08
1 changed files with 3 additions and 5 deletions
|
|
@ -1194,15 +1194,13 @@ static inline int process_node(void *data)
|
||||||
|
|
||||||
nsec = get_time_ns(data_system);
|
nsec = get_time_ns(data_system);
|
||||||
|
|
||||||
pw_log_trace_fp("%p: finished %"PRIu64, this, nsec);
|
pw_log_trace_fp("%p: finished status:%d %"PRIu64, this, status, nsec);
|
||||||
a->status = PW_NODE_ACTIVATION_FINISHED;
|
a->status = PW_NODE_ACTIVATION_FINISHED;
|
||||||
a->finish_time = nsec;
|
a->finish_time = nsec;
|
||||||
|
|
||||||
/* we don't need to trigger targets when the node was driving the
|
/* we don't need to trigger targets when the node was driving the
|
||||||
* graph because that means we finished the graph. Also don't schedule
|
* graph because that means we finished the graph. */
|
||||||
* peers when the node returns OK, because that means the resume will
|
if (SPA_LIKELY(!this->driving))
|
||||||
* happen asynchronously later (unimplemented though). */
|
|
||||||
if (SPA_LIKELY(!this->driving && status != SPA_STATUS_OK))
|
|
||||||
trigger_targets(this, status, nsec);
|
trigger_targets(this, status, nsec);
|
||||||
|
|
||||||
if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))
|
if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue