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

Thomas Guillem git at videolan.org
Thu Feb 22 18:01:00 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 22 17:50:49 2018 +0100| [8a56a3012d1c37de093fcc15a06f59435caa90db] | committer: Thomas Guillem

chromecast: report cc timestamp even when paused

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

 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