mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
examples: improve some debug
This commit is contained in:
parent
fef0e17b76
commit
a3ec0cf49e
5 changed files with 11 additions and 7 deletions
|
|
@ -100,9 +100,10 @@ on_process(void *_data, struct spa_io_position *position)
|
|||
uint32_t i, j;
|
||||
uint8_t *src, *dst;
|
||||
|
||||
b = pw_filter_dequeue_buffer(data->in_port);
|
||||
if (b == NULL)
|
||||
if ((b = pw_filter_dequeue_buffer(data->in_port)) == NULL) {
|
||||
pw_log_warn("out of buffers: %m");
|
||||
return;
|
||||
}
|
||||
|
||||
buf = b->buffer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue