diff options
author | Rodeo <[email protected]> | 2013-03-18 18:07:48 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-03-18 18:07:48 +0000 |
commit | 30ddd53e26b3e2aa5930c6cf985f938e36985aed (patch) | |
tree | 3399efbb5727360437672b8918a32dab72420e22 /test/test.c | |
parent | b0aa37a7ff20acafe7a28fe67c69699515d963c5 (diff) |
hb_system_sleep: refactoring.
Also:
- release power assertions before freeing them
- actually free the power assertions in hb_close() (previously unused)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5340 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test.c b/test/test.c index fedff6c3d..8247f5699 100644 --- a/test/test.c +++ b/test/test.c @@ -254,7 +254,7 @@ int main( int argc, char ** argv ) titleindex = 0; } - hb_prevent_sleep(h); + hb_system_sleep_prevent(h); hb_scan(h, input, titleindex, preview_count, store_previews, min_title_duration * 90000LL); @@ -274,10 +274,10 @@ int main( int argc, char ** argv ) fprintf(stdout, "\nEncoding Paused by user command, 'r' to resume\n"); hb_pause(h); - hb_allow_sleep(h); + hb_system_sleep_allow(h); break; case 'r': - hb_prevent_sleep(h); + hb_system_sleep_prevent(h); hb_resume(h); break; case 'h': @@ -325,10 +325,10 @@ int main( int argc, char ** argv ) fprintf(stdout, "\nEncoding Paused by user command, 'r' to resume\n"); hb_pause(h); - hb_allow_sleep(h); + hb_system_sleep_allow(h); break; case 'r': - hb_prevent_sleep(h); + hb_system_sleep_prevent(h); hb_resume(h); break; case 'h': |