[vlc-commits] chromecast: Fix position display when paused from an external app

Hugo Beauzée-Luyssen git at videolan.org
Tue Feb 21 14:00:58 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 21 13:43:37 2017 +0100| [607b61b66d7aae0ede25cdc5d338251406e73275] | committer: Hugo Beauzée-Luyssen

chromecast: Fix position display when paused from an external app

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

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index c3f82fd..292926b 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -720,7 +720,7 @@ mtime_t intf_sys_t::getPlaybackTimestamp() const
 
 double intf_sys_t::getPlaybackPosition() const
 {
-    if( m_length > 0 && m_time_playback_started != VLC_TS_INVALID)
+    if( m_length > 0 )
         return (double) getPlaybackTimestamp() / (double)( m_length );
     return 0.0;
 }



More information about the vlc-commits mailing list