X11 vs Cocoa on OS X for GstGL context sharing

Gottfried Haider gottfried.haider at gmail.com
Tue Jun 14 13:35:53 UTC 2016


Thank you, Matt! This [1] indeed did the trick.

Best
Gottfried

[1] https://github.com/gohai/processing-glvideo/commit/cb8e56c2c907f11272d3da5b709368b8e2f5dd80

On Tue, Jun 14, 2016 at 12:26 PM, Matthew Waters <ystreet00 at gmail.com> wrote:
> Hi,
>
> Cocoa is known to work and is tested on OS X.  glimagesink on OS X uses
> shared contexts with a CAOpenGLLayer.
>
> X11 on OS X is not tested regularly and I have heard reports of it not
> working.  Your mileage may vary ;)
>
> With Cocoa, the connection to the window system is through NSApplication
> which should automatically just work for sharing the display connection
> between GStreamer and your application and the default
> gst_gl_display_new() will work for Cocoa applications.
>
> Cheers
> -Matt
>
> On 14/06/16 19:46, Gottfried Haider wrote:
>> I've come across many references to
>> gst_gl_display_x11_new_with_display and friends in code that is
>> presumably also meant to run on OS X. However, I've found that the
>> gst/gl/x11/* headers aren't part of recent Framework releases for Mac,
>> and neither come when installing with homebrew.
>>
>> Is Cocoa the only supported way on OS X, or should I try to compile
>> gst-plugins-bad myself to include X11 support? (I am hoping to make
>> use of GL context sharing on this platform.)
>>
>> Thanks in advance
>> Gottfried
>


More information about the gstreamer-devel mailing list