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

display: remove useless checks

Window can no longer be NULL, and type parameter is never invalid.
parent 3251556f
......@@ -372,9 +372,7 @@ static inline vout_window_t *vout_display_NewWindow(vout_display_t *vd, unsigned
vout_window_t *wnd = vd->cfg->window;
if (type != VOUT_WINDOW_TYPE_INVALID && wnd != NULL && type != wnd->type)
wnd = NULL;
return wnd;
return (type == wnd->type) ? wnd : NULL;
static inline bool vout_display_IsWindowed(vout_display_t *vd)
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