{
vout_window_t *wnd = (vout_window_t *)obj;
- /* TODO: should probably be in the libvlc core instead: */
- if (!config_GetInt (obj, "embedded-video"))
- return VLC_EGENERIC;
-
intf_thread_t *intf = (intf_thread_t *)
vlc_object_find_name (obj, "qt4", FIND_ANYWHERE);
if (intf == NULL)
if (miP->isNull ())
return VLC_EGENERIC;
+ if (config_GetInt (obj, "embedded-video") <= 0)
+ {
+ (*miP)->requestNotEmbeddedVideo (wnd->vout);
+ return VLC_EGENERIC;
+ }
+
wnd->handle = (*miP)->requestVideo (wnd->vout, &wnd->pos_x, &wnd->pos_y,
&wnd->width, &wnd->height);
windowLock.unlock ();