Sorry for the confusion.
your first statement was perfectly intelligible. :) anyway, i dug up a two things.first, UpdateSystemActivity is nowhere mentioned as being deprecated or not available. it's even in the CoreServices/OSServices framework for all 4 supported architectures. the only problem is that apple inserted a
#if !__LP64__ #ifndef __POWER__ #include <OSServices/Power.h> #endifinto /System/Library/Frameworks/CoreServices.framework/Frameworks/ OSServices.framework/Headers/OSServices.h, which makes the compiler fail. the linker would in fact succeed.
i filed a bug (radar #6267445) against this. second, up from 10.5, there is a replacement for this function:IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, &assertionID); the problem is that this only disables display power management and not the screensaver. i have yet to find a good way to do this. people suggest
defaults write com.apple.screensaver write idleTime 0but this looks like a terrible hack to me and it seems setting it back to a positive number doesn't turn the screensaver back on again.
here's an updated patch. i don't suggest applying it yet, as it switches to IOPMAssertion when compiling for 10.5, and the screensaver is still on. but you can test if it works on x86_64, if you like.
i hope apple helps with a permanent solution.
Attachment:
mplayer-svn27682-quartz-macosx-deprecated.patch
Description: Binary data
_______________________________________________ MPlayer-dev-eng mailing list MPlayer-dev-eng@xxxxxxxxxxxx https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng