Skip to content
Snippets Groups Projects
Commit 7b157b7f authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

slideshow: Do not load image if window size is invalid

It can happen in some weird situations, like requesting to unlock when
monitors are added/removed.
parent cf28c1c0
No related branches found
No related tags found
No related merge requests found
Pipeline #28471 passed
......@@ -594,6 +594,9 @@ op_load_image (GSTESlideshow *show,
window_width = show->priv->window_width;
window_height = show->priv->window_height;
if (window_width <= 1 || window_height <= 1) {
return;
}
op_result = g_new0 (OpResult, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment