Hi,
I was troubleshooting some image display issues in the MPTVSeries plugin (fanart), and got them fixed on my dev computer.
I moved my new version of the plugin on my HTPC, and the issue was still there!
After a while I figured out my HTPC was using a post RC3 SVN build, while my dev computer still had sources from Sept 5th. So I updated my MP SVN sources, and blam! nothing works anymore in my plugin
The problem: after I've played a tv show, upon coming back in the plugin view any GUIImage that had a custom bitmap showing up show as black instead. From what I can tell tracing the code in MP, the texture of those GUIImage have been disposed.
a specific example; in MPTVSeries, we show up a background fanart using a GUIImage control in the skin. In OnPageLoad, we load the fanart picture in the GUIImage using the SetFileName function.
After a playback, we do the SetFileName again - but the filename of the GUIImage hasn't changed, so nothing's done. Still, when the render occurs on the GUIImage, the texture object is disposed, so nothing's displayed.
That used to work prior to RC3, it's not working anymore. Even worse, in the latest SVN (RC4+ I guess) no banner whatsoever "survives" a video playback - when coming back from a playback everything is empty, even on the series list. Rating bitmaps are gone, season bitmaps are gone, etc.
So I'm wondering what path should I take to make it work again? How is a plugin supposed to handle the initialization / reinitialization of its skin objects? Is there a way to make those texture "persistent"? Should it be done like that? Or am I missing a step somewhere? What's the common way of doing such things? Were we doing things wrong from the beginning?
Everything's broken! Help!
I was troubleshooting some image display issues in the MPTVSeries plugin (fanart), and got them fixed on my dev computer.
I moved my new version of the plugin on my HTPC, and the issue was still there!
After a while I figured out my HTPC was using a post RC3 SVN build, while my dev computer still had sources from Sept 5th. So I updated my MP SVN sources, and blam! nothing works anymore in my plugin
The problem: after I've played a tv show, upon coming back in the plugin view any GUIImage that had a custom bitmap showing up show as black instead. From what I can tell tracing the code in MP, the texture of those GUIImage have been disposed.
a specific example; in MPTVSeries, we show up a background fanart using a GUIImage control in the skin. In OnPageLoad, we load the fanart picture in the GUIImage using the SetFileName function.
After a playback, we do the SetFileName again - but the filename of the GUIImage hasn't changed, so nothing's done. Still, when the render occurs on the GUIImage, the texture object is disposed, so nothing's displayed.
That used to work prior to RC3, it's not working anymore. Even worse, in the latest SVN (RC4+ I guess) no banner whatsoever "survives" a video playback - when coming back from a playback everything is empty, even on the series list. Rating bitmaps are gone, season bitmaps are gone, etc.
So I'm wondering what path should I take to make it work again? How is a plugin supposed to handle the initialization / reinitialization of its skin objects? Is there a way to make those texture "persistent"? Should it be done like that? Or am I missing a step somewhere? What's the common way of doing such things? Were we doing things wrong from the beginning?
Everything's broken! Help!