EventThreadMouseAutoHide(sys->event);
}
+/**
+ * It ensures that the video window is shown after the first picture
+ * is displayed.
+ */
+void CommonDisplay(vout_display_t *vd)
+{
+ vout_display_sys_t *sys = vd->sys;
+
+ if (!sys->is_first_display)
+ return;
+
+ /* Video window is initially hidden, show it now since we got a
+ * picture to show.
+ */
+ SetWindowPos(sys->hvideownd, 0, 0, 0, 0, 0,
+ SWP_ASYNCWINDOWPOS|
+ SWP_FRAMECHANGED|
+ SWP_SHOWWINDOW|
+ SWP_NOMOVE|
+ SWP_NOSIZE|
+ SWP_NOZORDER);
+ sys->is_first_display = false;
+}
+
/*****************************************************************************
* UpdateRects: update clipping rectangles
*****************************************************************************
void CommonClean(vout_display_t *);
void CommonManage(vout_display_t *);
int CommonControl(vout_display_t *, int , va_list );
+void CommonDisplay(vout_display_t *);
void UpdateRects (vout_display_t *,
const vout_display_cfg_t *,
if (FAILED(hr)) {
msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
}
-
- if (sys->is_first_display) {
- /* Video window is initially hidden, show it now since we got a
- * picture to show.
- */
- SetWindowPos(vd->sys->hvideownd, 0, 0, 0, 0, 0,
- SWP_ASYNCWINDOWPOS|
- SWP_FRAMECHANGED|
- SWP_SHOWWINDOW|
- SWP_NOMOVE|
- SWP_NOSIZE|
- SWP_NOZORDER);
- sys->is_first_display = false;
- }
-
#if 0
VLC_UNUSED(picture);
#else
/* XXX See Prepare() */
picture_Release(picture);
#endif
+
+ CommonDisplay(vd);
}
static int ControlResetDevice(vout_display_t *vd)
{