Commit e04a1207 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

iOS: check that the vout is not windowed

parent 6d07b5e4
......@@ -121,6 +121,10 @@ static void *OurGetProcAddress(vlc_gl_t *gl, const char *name)
static int Open(vlc_object_t *this)
{
vout_display_t *vd = (vout_display_t *)this;
if (vout_display_IsWindowed(vd))
return VLC_EGENERIC;
vout_display_sys_t *sys = calloc (1, sizeof(*sys));
NSAutoreleasePool *autoreleasePool = nil;
......@@ -138,8 +142,6 @@ static int Open(vlc_object_t *this)
if (!viewContainer || ![viewContainer isKindOfClass:[UIView class]])
goto bailout;
vout_display_DeleteWindow (vd, NULL);
/* This will be released in Close(), on
* main thread, after we are done using it. */
sys->viewContainer = [viewContainer retain];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment