[vlc-devel] VLCKit

Pierre d'Herbemont pdherbemont at gmail.com
Sat Oct 10 19:13:52 CEST 2009


On Oct 10, 2009, at 6:47 PM, Mike Schrag wrote:

>>> I've attempting to embed VLCKit in an app built on Snow Leopard  
>>> and I've run into some issues.
>>>
>>> If I use VLCVideoView with a non-layer-backed parent view, it  
>>> works properly. However, I would much rather use the  
>>> VLCVideoLayer. Out-of-the-box, using VLCVideoLayer fails because  
>>> the vout impl is not the CA OpenGL Layer one (it tries to call  
>>> addVoutSubview on the VLCVideoLayer and explodes). If I modify  
>>> VLCLibrary to use opengllayer as the vout, I don't get the error,  
>>> but I only get audio and no video playback.
>>>
>>> Does anyone know what the proper configuration is to get  
>>> VLCVideoLayer to show video?
>>
>> I think this was fixed by 9a04dfd7. --vout=opengllayer should be  
>> enough
> Cool, yeah I saw that commit come by this morning. I'll verify later  
> today. My alternative fix (to actually explicitly bind drawable-gl)  
> is included in the patch on http://trac.videolan.org/vlc/ticket/ 
> 3098 , but i mentioned that in the description for whomever ends up  
> reviewing the patch.

Hi Mike,

Could you resend your patch on the vlc-devel? The proper way to do it  
these days is to use 'git format-patch' [1].

Also, if you could keep separate patches for the different issue  
(spdif/opengllayer) that would be better as well.

Tripple buffering seems like the way to go, especially because we  
can't properly flush the buffer unless we use the terrible hack we  
have now. (calling -display on main thread)

Pierre.

[1] http://wiki.videolan.org/Git#Submitting_patches_to_the_vlc-devel_or_x264-devel



More information about the vlc-devel mailing list