Using GstVideoOverlay on Mac

Sebastian Dröge sebastian at centricular.com
Tue Jan 19 07:03:15 PST 2016


On Di, 2016-01-19 at 14:49 +0000, Andy Robinson wrote:
> On 18/01/16 14:04, Sebastian Dröge wrote:
> > > > I just noticed that we also have a Cocoa example using
> > > > GstVideoOverlay:
> > > > http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/test
> > > > s/ex
> > > > amples/gl/cocoa
> > > 
> > > I did look briefly at this but it wouldn't compile - various
> > > problems
> > > -
> > > and the copyright message in the file is 2009 so maybe it needs
> > > updating (or dumping).
> > 
> > How does it fail to compile? From shortly looking over the code it
> > looks all good and was just updated in the middle of last year.
> 
> I have a test project in which the avsamplebufferlayersink compiles
> and  runs with no problems. When I try the same with the
> GstVideoOverlay example I get:
> 
> /Users/andy/Temp2/vidsinktest/vidsinktest/main.m:278:49: 
> 'NSAutoreleasePool' is unavailable: not available in automatic 
> reference counting mode

You have to compile the sample without ARC (automatic reference
counting). It's using explicit reference counting.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160119/3e00e64a/attachment-0001.sig>


More information about the gstreamer-devel mailing list