]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
disconnect from event loop in fedora-fade-in if show fails
authorRay Strode <rstrode@redhat.com>
Tue, 20 May 2008 14:53:09 +0000 (10:53 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 20 May 2008 14:53:09 +0000 (10:53 -0400)
We really need to drop attach_to_event_loop and pass the
loop into show.

src/splash-plugins/fedora-fade-in/fedora-fade-in.c

index 3502170804c07a93e302f2c31264439e849a651c..eb014f3d6128339e2761d7dca455ec389d05f3aa 100644 (file)
@@ -138,6 +138,8 @@ free_stars (ply_boot_splash_plugin_t *plugin)
   plugin->stars = NULL;
 }
 
+static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin);
+
 void
 destroy_plugin (ply_boot_splash_plugin_t *plugin)
 {
@@ -338,7 +340,12 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
 
   ply_trace ("opening frame buffer");
   if (!ply_frame_buffer_open (plugin->frame_buffer))
-    return false;
+    {
+      ply_event_loop_stop_watching_for_exit (plugin->loop, (ply_event_loop_exit_handler_t)
+                                             detach_from_event_loop,
+                                             plugin);
+      return false;
+    }
 
   plugin->window = window;