xbmc/xbmc — pull request #4064 by Memphiz (2014-01-21 17:13:09+00:00)
Title: [dvdplayer] - when starting playback update the playerstate with a possi...

...ble starttime (e.x. when resuming from a bookmark).

This is one approach to fix a problem where a python addon implements the "OnPlaybackStarted" callback and queries "xbmc.Player.GetTime()" at the very first.

In the case where playback was started from a resume point (this is what the addon wants to figure out) the GetTime() might return 0 (depends on the fact that the video has no valid dts yet).

@elupus for comment - not sure if this is a sane approach for fixing the problem.

See

https://github.com/bossanova808/script.xbmc.unpausejumpback/commit/6edca9671e1249ae0a826f7063278ee99bf252dc#diff-c338917e666d40f7b2684381cdb336f0R142

For reference (i don't want that stupid sleep in there!).