tests/screen-cast-client: Add a couple of more debug logs

It makes it easier to diagnose issues.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4065>
This commit is contained in:
Jonas Ådahl 2024-10-02 21:42:54 +02:00 committed by Marge Bot
parent 9358d00381
commit e417643d78

View File

@ -452,6 +452,7 @@ stream_wait_for_cursor_position (Stream *stream,
static void
stream_wait_for_streaming (Stream *stream)
{
g_debug ("Waiting for stream to stream");
while (stream->state != PW_STREAM_STATE_STREAMING)
g_main_context_iteration (NULL, TRUE);
}
@ -461,6 +462,7 @@ stream_wait_for_render (Stream *stream)
{
int initial_buffer_count = stream->buffer_count;
g_debug ("Waiting for new buffer");
while (stream->buffer_count == initial_buffer_count)
g_main_context_iteration (NULL, TRUE);
}