[vlc-commits] chromecast: Remove useless parameter

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


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Feb 16 16:47:44 2017 +0100| [4de24e37a7e0c71dce88962597ea8186d729e643] | committer: Hugo Beauzée-Luyssen

chromecast: Remove useless parameter

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

 modules/stream_out/chromecast/chromecast.h        | 2 +-
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index f203643..a3899fd 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -228,7 +228,7 @@ private:
         return i_ts_local_start;
     }
 
-    double getPlaybackPosition( mtime_t i_length ) const
+    double getPlaybackPosition() const
     {
         if( i_length > 0 && m_time_playback_started != VLC_TS_INVALID)
             return (double) getPlaybackTimestamp() / (double)( i_length );
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index bf1c687..d296773 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -1105,7 +1105,7 @@ double intf_sys_t::get_position(void *pt)
 {
     intf_sys_t *p_this = reinterpret_cast<intf_sys_t*>(pt);
     vlc_mutex_locker locker( &p_this->lock );
-    return p_this->getPlaybackPosition( p_this->i_length );
+    return p_this->getPlaybackPosition();
 }
 
 void intf_sys_t::set_length(void *pt, mtime_t length)



More information about the vlc-commits mailing list