Commit e9c4ac64 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/video_output/video_output.c: Do no send VOUT_CONTROL_CLEAN twice.

Turns out vout_Close() does the same except for the vout_control_WaitEmpty().
The vout_control_WaitEmpty() is not needed according to Laurent Ailmar.
parent e41ed82f
......@@ -229,14 +229,6 @@ vout_thread_t *(vout_Request)(vlc_object_t *object,
}
no_reuse:
{
vout_control_cmd_t cmd;
vout_control_cmd_Init(&cmd, VOUT_CONTROL_CLEAN);
cmd.u.cfg = cfg;
vout_control_Push(&vout->p->control, &cmd);
vout_control_WaitEmpty(&vout->p->control);
}
vout_CloseAndRelease(vout);
msg_Warn(object, "cannot reuse provided vout");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment