trakt / Trakt-for-Mediaportal

Adds Trakt Support to Mediaportal
http://www.team-mediaportal.com/
26 stars 10 forks source link

Few users reported delay on initial video playback #10

Closed damienhaynes closed 13 years ago

damienhaynes commented 13 years ago

A Few users (mastdan, Sebastii) have reported a delay on initial video playback for the first file played in MediaPortal, apparently this is when trakt is doing its inital sync of each of the plugin handlers.

Im not sure why something like this would happen given we run everything in a background thread, maybe we need to set it as low priority or review over that section of code.

We need to acquire logs or provide a debug build with more logging to work out whats going on here.

damienhaynes commented 13 years ago

Added a Thread.Sleep for 60secs in the Library Sync Background worker method and I can reproduce. The video is in a minimized state until sync is complete

damienhaynes commented 13 years ago

Ok, my stupidity broke this. I added lockThis to the method sometime ago.