Jerky, unwatchable playback in Kodi 14.0
#76
As for adding debug prints for AnnounceOnResetDevice, it already does that:

Code:
19:21:32 T:140735221764864   DEBUG: GetMode looking for suitable mode with 1920 x 1080 @ 24.000000 Hz on display 0
19:21:32 T:140735221764864   DEBUG: GetMode found a match!
19:21:32 T:140735221764864   DEBUG: CWinSystemOSX::DisplayReconfigured with flags 1
19:21:32 T:140735221764864   DEBUG: CWinSystemOSX::AnnounceOnLostDevice
19:21:32 T:4573761536   DEBUG: CDVDPlayer::HandleMessages - player started 2
19:21:32 T:4502081536   DEBUG: CCoreAudioStream::Close: Restoring original physical format for stream 0x003d. ([lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (44100Hz))
19:21:32 T:4502081536   DEBUG: CCoreAudioStream::SetPhysicalFormat: Physical format for stream 0x003d. now active ([lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (44100Hz))
19:21:32 T:4502081536   DEBUG: CCoreAudioStream::Close: Closed stream 0x003d.
19:21:32 T:4546486272  NOTICE: Thread Timer start, auto delete: false
19:21:32 T:140735221764864   DEBUG: CWinSystemOSX::DisplayReconfigured with flags 4104
19:21:32 T:140735221764864   DEBUG: CWinSystemOSX::AnnounceOnResetDevice

Unless you meant something else?

FWIW, the DisplayReconfigured callback with flags set to 4104 indicates the OS thinks the switch has occurred (kCGSetModeFlags), but it hasn't yet, so when the reference clock asks what the refresh rate is, it gets 0.0 (which is then forced to 60.0 by default). That's the crux of this whole problem.
Reply
#77
For those following this, the root of the problem has been found and fixed. But Memphiz is going to refactor some bits to clean up the code a bit more before it's final.

It shouldn't be too long (it's looking like there might be a 14.2 release for this and some other fixes), but I do have a build right now that works for those waiting impatiently, if someone wants to give me a place to put it.
Reply
#78
awesome, big thanks go to you and everyone involved for investigating and fixing this so quickly!
looking forward to a build
Reply
#79
The test build is here. Would appreciate it if others with this issue try with this build and see if it works OK for you.
Reply

Logout Mark Read Team Forum Stats Members Help
Jerky, unwatchable playback in Kodi 14.00