vlc | branch: master | Thomas Guillem <[email protected]> | Mon Jan 16 15:00:42 
2017 +0100| [cd1362c8ac0c5aa13270c2d59665b6539fe755cf] | committer: Thomas 
Guillem

vout: reset pause state from ThreadReinit()

The vout is expected to be on a playing state after Init or Reinit.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd1362c8ac0c5aa13270c2d59665b6539fe755cf
---

 src/video_output/video_output.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index a0163b4..7751ae6 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1497,6 +1497,10 @@ static int ThreadReinit(vout_thread_t *vout,
                         const vout_configuration_t *cfg)
 {
     video_format_t original;
+
+    vout->p->pause.is_on = false;
+    vout->p->pause.date  = VLC_TS_INVALID;
+
     if (VoutValidateFormat(&original, cfg->fmt)) {
         ThreadStop(vout, NULL);
         ThreadClean(vout);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to