Commit 91056f43 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

chromecast: rename isPlaying to isStatePlaying

And set it private.

(cherry picked from commit 716ab2af)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent d73c5f7c
......@@ -165,7 +165,6 @@ struct intf_sys_t
bool isFinishedPlaying();
void setHasInput(const std::string mime_type = "");
bool isPlaying() const;
void requestPlayerSeek(mtime_t pos);
void requestPlayerStop();
......@@ -182,6 +181,7 @@ private:
void queueMessage( QueueableMessages msg );
void setPauseState(bool paused);
bool isStatePlaying() const;
void setMeta( vlc_meta_t *p_meta );
......
......@@ -297,7 +297,7 @@ void intf_sys_t::setHasInput( const std::string mime_type )
m_eof = false;
}
bool intf_sys_t::isPlaying() const
bool intf_sys_t::isStatePlaying() const
{
switch( m_state )
{
......@@ -382,7 +382,7 @@ void intf_sys_t::mainLoop()
switch ( msg )
{
case Stop:
if( isPlaying() )
if( isStatePlaying() )
{
if ( m_mediaSessionId == 0 )
m_request_stop = true;
......@@ -395,7 +395,7 @@ void intf_sys_t::mainLoop()
break;
case Seek:
{
if( !isPlaying() || m_mediaSessionId == 0 )
if( !isStatePlaying() || m_mediaSessionId == 0 )
break;
char current_time[32];
mtime_t seek_request_time = mdate() + SEEK_FORWARD_OFFSET;
......@@ -824,7 +824,7 @@ void intf_sys_t::requestPlayerStop()
m_art_stream = NULL;
}
if( !isPlaying() )
if( !isStatePlaying() )
return;
queueMessage( Stop );
......@@ -839,7 +839,7 @@ States intf_sys_t::state() const
void intf_sys_t::requestPlayerSeek(mtime_t pos)
{
vlc_mutex_locker locker(&m_lock);
if( !isPlaying() || m_mediaSessionId == 0 )
if( !isStatePlaying() || m_mediaSessionId == 0 )
return;
if ( pos != VLC_TS_INVALID )
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