Re: [Mplayerplug-in-devel] Deadlock in mplayerplug-in 3.50, when 2 embeds want to swap their "src"
Brought to you by:
kdekorte
From: Kevin D. <kde...@gm...> - 2008-05-29 13:27:17
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 da...@sk... wrote: | | Yes , it seems to work..(there are no zombies) but there is still one thing | I cannot understand. | Why the Mplayer process is launched 4 times in parallel. (but only 2 movies | are embed in the same time) | Could you please use my "test.html" example (it was attached, 2 days ago in | my first post) and take a look? | | Moreover, after 30-60 minutes, it still crashes... I don't know why. | | This solution is still unstable.. and I really want to have it done :) | | Best Regards | Zbigniew. First of all mplayer normally forks itself, so seeing two processes is normal. And I am using your code to test and although I think the stability could be much improved in your code by checking the state of the plugin so that your not slamming it so hard. Make sure it is in a state that can be shutdown. While it is connecting is not a good time. Have you looked at the DOCS/tech/javascript.txt file? Also, something else you might want to do is to use the media events rather that a raw timer... such as onMediaComplete <embed onMediaComplete="javascript:swapvideo();" name='video1' .... I even tried your code on my newer version of mplayerplug-in named gecko-mediaplayer and the code managed to crash it as well, mainly due to the rapid switching of video without checking the state of the object. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFIPq8b6w2kMH0L1dERAkY4AJ4yCpZe6amubfJtInZfdo1csPTbuACcCAp6 BvZRuLekBSdcjj9JMKr1kbM= =umZX -----END PGP SIGNATURE----- |