Using GstVideoOverlay on Mac

Andy Robinson andy at seventhstring.com
Tue Jan 19 06:49:12 PST 2016


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/tests/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
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:288:9: 'release' is 
unavailable: not available in automatic reference counting mode
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:288:9: ARC forbids 
explicit message send of 'release'
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:319:3: 
'NSAutoreleasePool' is unavailable: not available in automatic reference 
counting mode
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:323:30: 
'NSAutoreleasePool' is unavailable: not available in automatic reference 
counting mode
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:359:3: Implicit 
conversion of Objective-C pointer type 'MainWindow *' to C pointer type 
'gpointer' (aka 'void *') requires a bridged cast
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:360:3: Implicit 
conversion of Objective-C pointer type 'MainWindow *' to C pointer type 
'gpointer' (aka 'void *') requires a bridged cast
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:361:3: Implicit 
conversion of Objective-C pointer type 'MainWindow *' to C pointer type 
'gpointer' (aka 'void *') requires a bridged cast
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:362:69: Implicit 
conversion of Objective-C pointer type 'MainWindow *' to C pointer type 
'gpointer' (aka 'void *') requires a bridged cast
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:366:34: Implicit 
conversion of Objective-C pointer type 'MainWindow *' to C pointer type 
'gpointer' (aka 'void *') requires a bridged cast
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:382:11: 'release' is 
unavailable: not available in automatic reference counting mode
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:382:11: ARC forbids 
explicit message send of 'release'
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:384:9: 'release' is 
unavailable: not available in automatic reference counting mode
/Users/andy/Temp2/vidsinktest/vidsinktest/main.m:384:9: ARC forbids 
explicit message send of 'release'

Regards,
Andy Robinson, Seventh String Software, www.seventhstring.com


More information about the gstreamer-devel mailing list