[MPlayer-dev-eng] [PATCH] silence compiling warning on vo_corevideo
Xidorn Quan
quanxunzhen at gmail.com
Thu Sep 13 13:50:14 CEST 2012
On Thu, Sep 13, 2012 at 4:30 PM, Zongyao Qu <zongyao.qu at gmail.com> wrote:
>
> There is a sepcial variable for 0, please use kIOPMNullAssertionID.
>
>> kIOPMAssertionTypeNoDisplaySleep
>
> This one is not compatible with 10.8, since there is a more aggressive
> policy on PM in 10.8.
>
> Please use
> kIOPMAssertionTypePreventUserIdleDisplaySleep
> and
> IOPMAssertionDeclareUserActivity()
> for 10.7 or above.
>
> Please let me explain,
> kIOPMAssertionTypePreventUserIdleDisplaySleep will help
> you to avoid display dimming as long as you hold the assertionID,
> but once you release it after the power management timer times out,
> for example, playback finished, or paused by AppleRemote,
> the display will dimmed out ASAP.
>
> And also, if you assert it when display is already dimmed out, it will
> NOT wake up automatically, so IOPMAssertionDeclareUserActivity() should
> be used with the assertion/release.
>
> This is the new behavior in 10.8.
I accept your proposal though I didn't find anything in the documents
declared that kIOPMAssertionTypeNoDisplaySleep is not compatible
with 10.8, and it worked fine for my 10.8 as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_vo_corevideo_warn.patch
Type: application/octet-stream
Size: 3601 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120913/5f46af1d/attachment.obj>
More information about the MPlayer-dev-eng
mailing list