[vlc-commits] vout: reset pause state from ThreadReinit()
Thomas Guillem
git at videolan.org
Wed Jan 18 07:54:18 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | 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);
More information about the vlc-commits
mailing list