Posts: 6,810
Joined: Jul 2010
Reputation:
198
My working branch is a big construction site at the moment. I will let you know when its worth testing. I have touched subtitles in order to put texture loading on an extra thread but have not looked yet into bitmaps.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
The problem is the interoperation with OpenGL. The OpenGL pipeline is asnyc, and has textures mapped to resources from hardware decoder. Now if an error occurs like display preemption, you have to make sure that the OpenGL pipeline is empty and there are no references to invalid resources.
The approach is:
- look in advance if a change of refresh rate will happen
- stop player and clear opengl pipeline
- clear down vdpau (or other hw decoder)
- allow change of refresh rate
- wait until it has happened
- start player and reinit decoder
Posts: 52
Joined: Dec 2009
Reputation:
0
Ok thx - looking forward to test it as soon as you say its ok - so take your time and let us know (please) when you think its worth testing.
Posts: 443
Joined: Dec 2010
Reputation:
13
Ah ok!, because I tested this and my xbmc crash again xD
Regards!