mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
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:
parent
1c1adb0036
commit
480e7d44be
@ -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;
|
||||
}
|
||||
|
||||
spa_buffer = buffer->buffer;
|
||||
data = spa_buffer->datas[0].data;
|
||||
|
Loading…
Reference in New Issue
Block a user