GNOME Bugzilla – Bug 570581
osxvideosink: non-embedded mode is badly broken and should be removed
Last modified: 2009-03-07 09:52:15 UTC
The default mode for osxvideosink is for it to create its own window. This does not (and can not) work for any cocoa application - the sole purpose appears to be to make it usable with gst-launch. However, those codepaths are complex, mostly untested, and painful to maintain. The patch I'm about to attach removes this mode, and makes the embedded mode mandatory. It also fixes memory management to avoid leaks and occasional crashes. What do people think about this? Has anyone actually made real use of osxvideosink without using the embedded mode? (oleavr and twi seemed to give their approval for this idea on irc the other day, so I'll commit this in a week or so if nobody objects)
Created attachment 127980 [details] [review] Remove non-embedded mode, fix use of autorelease pools
That was one of my immediate thoughts looking at the code a few weeks ago. x[v]imagesink work on OS/X without much trouble (assuming you're compiling gstreamer from scratch), so anyone using gst-launch can use those.
Might it be of use to throw an error message for gst-launch users (that'd me ;) ) that the non-embedded is not supported anymore?