summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r--macosx/HBPreviewController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 4ef2824e3..5214cf0ea 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -687,7 +687,7 @@
{
fEncodeState = 2;
hb_stop(fPreviewLibhb);
- hb_allow_sleep(fPreviewLibhb);
+ hb_system_sleep_allow(fPreviewLibhb);
[NSAnimationContext beginGrouping];
[[NSAnimationContext currentContext] setDuration:0.2];
[[fEncodingControlBox animator] setHidden:YES];
@@ -805,7 +805,7 @@
/* Let fPreviewLibhb do the job */
fEncodeState = 1;
- hb_prevent_sleep(fPreviewLibhb);
+ hb_system_sleep_prevent(fPreviewLibhb);
hb_start(fPreviewLibhb);
}
@@ -900,7 +900,7 @@
fEncodeState = 0;
/* Done encoding, allow system sleep for the preview handle */
- hb_allow_sleep(fPreviewLibhb);
+ hb_system_sleep_allow(fPreviewLibhb);
break;
}
}