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:
Wim Taymans 2016-09-19 19:17:59 +02:00
parent 1e565a5f65
commit 4b83d6cfc8
9 changed files with 809 additions and 802 deletions

View file

@ -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; \