]> granicus.if.org Git - handbrake/commitdiff
Use the non deprecated kIOPMAssertPreventUserIdleSystemSleep assertion to prevent...
authorDamiano Galassi <damiog@gmail.com>
Mon, 5 Oct 2015 07:47:17 +0000 (09:47 +0200)
committerDamiano Galassi <damiog@gmail.com>
Mon, 5 Oct 2015 07:47:17 +0000 (09:47 +0200)
libhb/ports.c

index 23be576b9ca988eed9e3bef3b67b9ae33d1825c9..ee896acb41ac05e6eca23adb6affc478e4f0a05c 100644 (file)
@@ -1337,7 +1337,7 @@ void hb_system_sleep_private_disable(void *opaque)
         return;
     }
 
-    IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep,
+    IOReturn success = IOPMAssertionCreateWithName(kIOPMAssertPreventUserIdleSystemSleep,
                                                    kIOPMAssertionLevelOn,
                                                    reasonForActivity,
                                                    assertionID);