screen-cast-stream-src: Don't complain when we can't dequeue buffer

PipeWire will be unable to dequeue a buffer if all are already busy.
This can happen for valid reasons, e.g. the stream consumer not being
fast enough, so don't complain in the journal if it happens.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1115
This commit is contained in:
Jonas Ådahl 2020-03-09 17:43:54 +01:00
parent 1c1adb0036
commit 480e7d44be

View File

@ -456,10 +456,7 @@ meta_screen_cast_stream_src_maybe_record_frame (MetaScreenCastStreamSrc *src)
buffer = pw_stream_dequeue_buffer (priv->pipewire_stream);
if (!buffer)
{
g_warning ("Failed to dequeue at PipeWire buffer");
return;
}
return;
spa_buffer = buffer->buffer;
data = spa_buffer->datas[0].data;