examples: improve some debug

This commit is contained in:
Wim Taymans 2020-03-02 17:27:00 +01:00
parent fef0e17b76
commit a3ec0cf49e
5 changed files with 11 additions and 7 deletions

View file

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