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

2018-02-22 Thread Thomas Guillem
vlc/vlc-3.0 | branch: master | Thomas Guillem  | 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 

> 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(400) )
 {
 m_cc_time_last_request_date = now;

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits


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

2018-02-22 Thread Thomas Guillem
vlc | branch: master | Thomas Guillem  | 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(400) )
 {
 m_cc_time_last_request_date = now;

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits