2015-02-21, 10:25
(2015-02-21, 07:26)flitter2009 Wrote: Hi,To clarify, the plugin uses different threads to handle events, demuxing, and others operations ... Also in the playback thread initiated by kodi player there is no "main loop" in plugin which acts only as an interface between two "main loop": backend , kodi.
In another thread (http://forum.kodi.tv/showthread.php?tid=201778) i've been advised (by fritsch) that the Myth plugin is causing the 'main loop' to stop for around a second when it receives an event from the backend. The message I was troubleshooting is "DEBUG: CDVDPlayerAudio:: Dropping packet of 20 ms" that occurs when the backend generates a RECORDING_LIST_CHANGE event.
Is this by design, and is it different on 0.28? I'm getting slight audio/video stutter on playback of non-myth HD video files in Kodi.
In plugin all internal operations are processed by dedicated threads: events , download images, demux.
The event RECORDING_LIST_CHANGE is handle by dedicated thread which transfers recording data calling the PVR kodi interface. So in the plugin there is no interaction between events and playback.