Bug in mozilla plugin destruction

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
keymon

Bug in mozilla plugin destruction

Postby keymon » 30 May 2006 18:31

Hi, I'm using vlc-0.8.5 in linux (Debian Testing) with firefox 1.0.8.

There is a bug when more than one video is played with mozilla plugin:

When the page is reloaded, the plugin objects are destroyed. The destructor calls the mozilla/vlcshell.cpp:NPP_Destroy() function, that calls the libvlc functions: VLC_CleanUp() and VLC_Destroy().

The problem is that if there are more than one vlcplugin instance, VLC_Destroy() is called twice and some data strutures are freed twice.

I examined a little the code, and I think that VLC_Destroy() operates over global data that the vlcplugin threads share and that should not be freed if other instances are running. It also perfoms operations that I think that are unnecesary, like save configuration (?) or the module cache...

I commented the VLC_Destroy() and it works great.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 30 May 2006 19:08

trac report has been made
Don't use PMs for support questions.

denz
New Cone
New Cone
Posts: 4
Joined: 02 Oct 2006 09:12

Postby denz » 20 Oct 2006 11:06

I tried your workaround for 0.8.6 but the code has changed since 0.8.5 but it seems to be still the same problem :(
do you have any ideas how to work around the bug without eating all of my memory ;) ?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 43 guests