[vlc-commits] chromecast: Remove write only variable

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


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 20 15:04:26 2017 +0100| [af265c20794b24f6f2724125f03bc904278923d5] | committer: Hugo Beauzée-Luyssen

chromecast: Remove write only variable

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

 modules/stream_out/chromecast/chromecast.h        | 2 --
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 4 +---
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index b3fba6f..3a69c40 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -212,8 +212,6 @@ private:
     std::atomic_bool m_requested_stop;
     std::atomic_bool m_requested_seek;
 
-    bool           m_has_input;
-
     std::string m_artwork;
     std::string m_title;
 
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 55acada..cb2a317 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -84,7 +84,6 @@ intf_sys_t::intf_sys_t(vlc_object_t * const p_this, int port, std::string device
  , m_state( Authenticating )
  , m_requested_stop(false)
  , m_requested_seek(false)
- , m_has_input(false)
  , m_ctl_thread_interrupt(p_interrupt)
  , m_time_playback_started( VLC_TS_INVALID )
  , m_ts_local_start( VLC_TS_INVALID )
@@ -166,10 +165,9 @@ void intf_sys_t::setHasInput( bool b_has_input, const std::string mime_type )
     vlc_mutex_locker locker(&m_lock);
     msg_Dbg( m_module, "setHasInput %s session:%s",b_has_input ? "true":"false", m_mediaSessionId.c_str() );
 
-    this->m_has_input = b_has_input;
     this->m_mime = mime_type;
 
-    if( this->m_has_input )
+    if( b_has_input )
     {
         mutex_cleanup_push(&m_lock);
         waitAppStarted();



More information about the vlc-commits mailing list