power management inhibit: uninhibit only once
authorRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 13:12:51 +0000 (13:12 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 13:12:51 +0000 (13:12 +0000)
modules/misc/inhibit.c

index 1103bd0..fa374b2 100644 (file)
@@ -212,6 +212,7 @@ static int UnInhibit( intf_thread_t *p_intf )
 
     dbus_message_unref( p_msg );
 
+    p_intf->p_sys->i_cookie = 0;
     return VLC_TRUE;
 }