Commit 7253b6bc authored by Aleix Pol's avatar Aleix Pol 🎨
Browse files

Print an error message if we're offered a format we don't understand

parent b4a6299e
......@@ -320,8 +320,13 @@ on_process_cb (void *user_data)
xdg->current_pw_buffer = b;
spa_pixel_format_to_obs_pixel_format (xdg->format.info.raw.format,
&obs_format);
if (!spa_pixel_format_to_obs_pixel_format (xdg->format.info.raw.format,
&obs_format))
{
blog (LOG_ERROR, "[pipewire] unsupported buffer format: %d", xdg->format.info.raw.format);
goto read_metadata;
}
if (!has_buffer)
goto read_metadata;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment