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

vout: correctly ignore VOUT_WINDOW_SET_FULLSCREEN result

Also document the result value better.
parent 073bdc14
......@@ -270,7 +270,14 @@ static inline int vout_window_SetSize(vout_window_t *window,
* Sets fullscreen mode.
* Requests fullscreen mode.
* \param full true to request full screen, false to request window mode
* \retval VLC_SUCCESS The request has been queued to the windowing system
* (that does <b>not</b> imply that the request is complete nor succesful).
* \retval VLC_EGENERIC The request could not be queued, e.g. the back-end does
* not implement toggling between fullscreen and windowed modes.
static inline int vout_window_SetFullScreen(vout_window_t *window, bool full)
......@@ -1352,17 +1352,13 @@ static void ThreadChangeFullscreen(vout_thread_t *vout, bool fullscreen)
vout_window_t *window = vout->p->window;
#if !defined(_WIN32) && !defined(__OS2__)
if (window != NULL)
vout_window_SetFullScreen(window, fullscreen);
bool window_fullscreen = false;
if (window != NULL
&& vout_window_SetFullScreen(window, fullscreen) == VLC_SUCCESS)
window_fullscreen = true;
#if defined(_WIN32) || defined(__OS2__)
/* FIXME: remove this event */
if (vout->p->display.vd != NULL)
vout_display_SendEventFullscreen(vout->p->display.vd, fullscreen, window_fullscreen);
vout_display_SendEventFullscreen(vout->p->display.vd, fullscreen,
window != NULL);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment