Commit 716ab2af authored by Thomas Guillem's avatar Thomas Guillem

chromecast: rename isPlaying to isStatePlaying

And set it private.
parent c0d32728
...@@ -165,7 +165,6 @@ struct intf_sys_t ...@@ -165,7 +165,6 @@ struct intf_sys_t
bool isFinishedPlaying(); bool isFinishedPlaying();
void setHasInput(const std::string mime_type = ""); void setHasInput(const std::string mime_type = "");
bool isPlaying() const;
void requestPlayerSeek(mtime_t pos); void requestPlayerSeek(mtime_t pos);
void requestPlayerStop(); void requestPlayerStop();
...@@ -182,6 +181,7 @@ private: ...@@ -182,6 +181,7 @@ private:
void queueMessage( QueueableMessages msg ); void queueMessage( QueueableMessages msg );
void setPauseState(bool paused); void setPauseState(bool paused);
bool isStatePlaying() const;
void setMeta( vlc_meta_t *p_meta ); void setMeta( vlc_meta_t *p_meta );
......
...@@ -297,7 +297,7 @@ void intf_sys_t::setHasInput( const std::string mime_type ) ...@@ -297,7 +297,7 @@ void intf_sys_t::setHasInput( const std::string mime_type )
m_eof = false; m_eof = false;
} }
bool intf_sys_t::isPlaying() const bool intf_sys_t::isStatePlaying() const
{ {
switch( m_state ) switch( m_state )
{ {
...@@ -382,7 +382,7 @@ void intf_sys_t::mainLoop() ...@@ -382,7 +382,7 @@ void intf_sys_t::mainLoop()
switch ( msg ) switch ( msg )
{ {
case Stop: case Stop:
if( isPlaying() ) if( isStatePlaying() )
{ {
if ( m_mediaSessionId == 0 ) if ( m_mediaSessionId == 0 )
m_request_stop = true; m_request_stop = true;
...@@ -395,7 +395,7 @@ void intf_sys_t::mainLoop() ...@@ -395,7 +395,7 @@ void intf_sys_t::mainLoop()
break; break;
case Seek: case Seek:
{ {
if( !isPlaying() || m_mediaSessionId == 0 ) if( !isStatePlaying() || m_mediaSessionId == 0 )
break; break;
char current_time[32]; char current_time[32];
mtime_t seek_request_time = mdate() + SEEK_FORWARD_OFFSET; mtime_t seek_request_time = mdate() + SEEK_FORWARD_OFFSET;
...@@ -824,7 +824,7 @@ void intf_sys_t::requestPlayerStop() ...@@ -824,7 +824,7 @@ void intf_sys_t::requestPlayerStop()
m_art_stream = NULL; m_art_stream = NULL;
} }
if( !isPlaying() ) if( !isStatePlaying() )
return; return;
queueMessage( Stop ); queueMessage( Stop );
...@@ -839,7 +839,7 @@ States intf_sys_t::state() const ...@@ -839,7 +839,7 @@ States intf_sys_t::state() const
void intf_sys_t::requestPlayerSeek(mtime_t pos) void intf_sys_t::requestPlayerSeek(mtime_t pos)
{ {
vlc_mutex_locker locker(&m_lock); vlc_mutex_locker locker(&m_lock);
if( !isPlaying() || m_mediaSessionId == 0 ) if( !isStatePlaying() || m_mediaSessionId == 0 )
return; return;
if ( pos != VLC_TS_INVALID ) if ( pos != VLC_TS_INVALID )
m_ts_local_start = pos; m_ts_local_start = pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment