Commit 9d6e0587 authored by Thomas Guillem's avatar Thomas Guillem

vout: reinitialize interlacing from ThreadReinit

In order to not wait for 30 seconds before unloading the deinterlace filter
when opening a new video (if the vout is re-used).
parent 1983e0b9
......@@ -237,6 +237,12 @@ void vout_InitInterlacingSupport(vout_thread_t *vout, bool is_interlaced)
vout->p->interlacing.date = mdate();
}
void vout_ReinitInterlacingSupport(vout_thread_t *vout)
{
vout->p->interlacing.is_interlaced = false;
var_SetBool(vout, "deinterlace-needed", false);
}
void vout_SetInterlacingState(vout_thread_t *vout, bool is_interlaced)
{
/* Wait 30s before quiting interlacing mode */
......
......@@ -25,6 +25,7 @@
#define LIBVLC_VOUT_INTERLACING_H
void vout_InitInterlacingSupport(vout_thread_t *, bool is_interlaced);
void vout_ReinitInterlacingSupport(vout_thread_t *);
void vout_SetInterlacingState(vout_thread_t *, bool is_interlaced);
#endif
......@@ -1489,6 +1489,8 @@ static int ThreadReinit(vout_thread_t *vout,
ThreadStop(vout, &state);
vout_ReinitInterlacingSupport(vout);
if (!state.cfg.is_fullscreen) {
state.cfg.display.width = 0;
state.cfg.display.height = 0;
......
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