mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
examples: also handle SDL events in main-thread
This commit is contained in:
parent
0b523e4334
commit
47dd97049c
2 changed files with 4 additions and 4 deletions
|
|
@ -452,6 +452,8 @@ static int do_render(struct spa_loop *loop, bool async, uint32_t seq,
|
|||
int i;
|
||||
uint8_t *src, *dst;
|
||||
|
||||
handle_events(d);
|
||||
|
||||
if (d->io->status != SPA_STATUS_HAVE_BUFFER)
|
||||
return 0;
|
||||
|
||||
|
|
@ -506,8 +508,6 @@ static int impl_node_process_input(struct spa_node *node)
|
|||
SPA_ID_INVALID, NULL, 0, true, d)) < 0)
|
||||
return res;
|
||||
|
||||
handle_events(d);
|
||||
|
||||
return d->io->status = SPA_STATUS_NEED_BUFFER;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue