mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
videotestsrc: remove threads
Remove the threads from the element and use timerfd to schedule timeouts Propagate live flag between node links
This commit is contained in:
parent
1e565a5f65
commit
4b83d6cfc8
9 changed files with 809 additions and 802 deletions
|
|
@ -39,7 +39,7 @@ struct _SpaQueue {
|
|||
(q)->length = 0; \
|
||||
} while (0);
|
||||
|
||||
#define SPA_QUEUE_PUSH_TAIL(q,t,i) \
|
||||
#define SPA_QUEUE_PUSH_TAIL(q,t,next,i) \
|
||||
do { \
|
||||
if ((q)->tail) \
|
||||
((t*)(q)->tail)->next = (i); \
|
||||
|
|
@ -49,7 +49,7 @@ struct _SpaQueue {
|
|||
(q)->length++; \
|
||||
} while (0);
|
||||
|
||||
#define SPA_QUEUE_POP_HEAD(q,t,i) \
|
||||
#define SPA_QUEUE_POP_HEAD(q,t,next,i) \
|
||||
do { \
|
||||
if (((i) = (t*)((q)->head)) == NULL) \
|
||||
break; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue