Included html file (clown_hermanni.htm) with link to Finnish
Broadcasting Co so-called "elävä arkisto" (living archive) seems to
rather reliably crash mplayerplug-in (daily build 5th Oct, 2007) in
After some debugging, I found out that the it crashes because (for some
reason or other) variable mPlugin can be NULL when this function is called.
I changed function to be a little bit more defensive:
NS_IMETHODIMP nsScriptablePeer::GetPlayState(PRInt32 * aPlayState)
printf("JS playState issued\n");
assert (aPlayState != NULL);
//Apparently, mPlugin CAN be NULL here for some reason (external bug
//Try to avoid crash if so
if (mPlugin != NULL)
*aPlayState = JS_STATE_UNDEFINED;
with this change, "elävä arkisto" seems to work ok now.