Fixes for Mac plugin: video window cleanup

This forum is about all development around libVLC.
abakker
New Cone
New Cone
Posts: 4
Joined: 18 Jan 2008 09:18

Fixes for Mac plugin: video window cleanup

Postby abakker » 09 Nov 2010 10:29

Hi

I'd like to share how I fixed a problem with the VLC mozilla plugin on Mac. With version 1.0.5 the video window does not get cleanup after a playlist.stop(), opening a new tab or switching to a different URL in the same tab. It stay on top of the new content in the browser, as reported in:

viewtopic.php?f=16&t=71746
viewtopic.php?f=16&t=80229

I don't have the time to provide a patch, but these hint should point a developer in the right direction:

1. the problem with playlist.stop() and switching to a different URL are easily solved by copying the cleanup code from modules/gui/macosx/voutgl.m::CloseVideoGL to modules/gui/minimal_macosx/voutgl.m

2. the problem with opening a new tab has to be resolved by editing modules/gui/minimal_macosx/voutagl.m, the aglControl SET_VIEWPORT code. I've set the clipped_out test to True to solve the problem.

CU,
Arno

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests