[vlc-commits] chromecast: report cc timestamp even when paused

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


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 22 17:50:49 2018 +0100| [453bc197c64cbb19fc667fba53a41096fc8ccac2] | committer: Thomas Guillem

chromecast: report cc timestamp even when paused

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

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 2afcf54238..598cdf6392 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -1073,13 +1073,14 @@ mtime_t intf_sys_t::getPlaybackTimestamp()
     switch( m_state )
     {
         case Buffering:
+        case Paused:
             if( !m_played_once )
                 return VLC_TS_INVALID;
             /* fallthrough */
         case Playing:
         {
             mtime_t now = mdate();
-            if( m_last_request_id == 0
+            if( m_state == Playing && m_last_request_id == 0
              && now - m_cc_time_last_request_date > INT64_C(4000000) )
             {
                 m_cc_time_last_request_date = now;



More information about the vlc-commits mailing list