If there is a window, it has to be used given the video output has non-zero
priority. Unfortunately, there are no good ways to run SDL within a window
(it can be done, but it is not thread-safe).
vout_display_t *vd = (vout_display_t *)object;
vout_display_sys_t *sys;
+ if (vout_display_IsWindowed(vd))
+ return VLC_EGENERIC;
#if !defined(_WIN32) && !defined(__OS2__)
if (!vlc_xlib_init (object))
return VLC_EGENERIC;
msg_Err(vd, "no video mode available");
goto error;
}
- vout_display_DeleteWindow(vd, NULL);
sys->display = SDL_SetVideoMode(display_width, display_height,
sys->display_bpp, sys->display_flags);