<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi all,<br><br>I'm a first time contributor.  I've been working with the Mac OS X Framework for VLC and found a few bugs.  More specifically, the test application included in SVN will not run because the video output plugin (opengl) is calling on an "opengl provider" plugin (libmacosx_plugin.dylib) that uses legacy APIs to render the video to a window (or subview).  If I delete libmacosx_plugin.dylib from the framework's modules folder, the application runs just fine.  <br><br>I figured that if I could tell libvlc with the initialization parameters that I wanted to use a specific opengl provider, that this would fix my problem.  So modified modules/opengl.c and modules/minimal_macosx/macosx.c to get my desired affect.  I added an "opengl-provider" parameter in opengl.c.  Then when opengl.c requests for an "opengl provider", I specified the value of "opengl-provider" as a shortcut.<br><br>In minimal_macosx I included the add_shortcut("provider_cocoa") declaration to allow me to choose this module as my opengl provider.  I modified the framework's VLCLibrary.m file to load libvlc as follows:<br><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">        char *lib_vlc_params[] = { </span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">            [applicationPath cString], </span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">            "-I", "dummy", "-vvvv", "--opengl-provider", "provider_cocoa", NULL</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">        };</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">        instance = libvlc_new(6, lib_vlc_params, &ex);</span><br><br>Now the test application loads with no problems, and actually uses the libminimal_macosx_plugin.dylib as the opengl provider versus libmacosx_plugin.dylib.<br><br>This patch shouldn't break anything, as it only adds a few lines.<br><br>Please see attached for the patch.<br><br>Any feedback is welcomed.<br><br>- Enrique<br><br></div><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>