[vlc-commits] chromecast: reset time/position when changing es tracks

Thomas Guillem git at videolan.org
Fri Feb 23 08:29:52 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 22 16:58:06 2018 +0100| [ca359b040f19c7939c3fe2d4b33a25cf80404bf7] | committer: Thomas Guillem

chromecast: reset time/position when changing es tracks

This fixes inconsistency of reported time when changing es tracks.

(cherry picked from commit 6b2d7be9a9556ad83312ac94b696d43ae3596e7f)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/stream_out/chromecast/chromecast_demux.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_out/chromecast/chromecast_demux.cpp b/modules/stream_out/chromecast/chromecast_demux.cpp
index 65e64cf629..b923cb1272 100644
--- a/modules/stream_out/chromecast/chromecast_demux.cpp
+++ b/modules/stream_out/chromecast/chromecast_demux.cpp
@@ -401,6 +401,7 @@ struct demux_sys_t
              * flush sout streams, make sout del/add called right away and
              * clear CC buffers. */
             seekBack(m_last_time, m_last_pos);
+            initTimes();
             resetDemuxEof();
             break;
         case DEMUX_FILTER_ENABLE:



More information about the vlc-commits mailing list