[vlc-devel] Re: Python+wxPython bindings on Mac (patch)

Pierre d'Herbemont pdherbemont at free.fr
Sat May 19 17:15:03 CEST 2007


Hello Jan,

On 19 mai 07, at 12:19, Jan David Mol wrote:

> I just finished obtaining VLC playback under wxPython on Mac.

Nice!

> My modifications may break other stuff and require some ugly hacks  
> (imho), but do get the job done. I like any advice on how to  
> proceed or fix these issues.


You could simply expand the drawable to a pointer to a structure like  
this:

enum macosx_drawable_type_t
{
	VLCDrawableControlRefType,
	VLCDrawableAGLDrawableType,
	VLCDrawableNSViewType
}

struct {
	enum macosx_drawable_type_t type;
	union value
  	{
		ControlRef control;
		AGLDrawable agl;
		NSView * view;
	}
}

Then your code could be isolated well from the existing code which is  
used by the mozilla plugin.

Pierre.

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list