Work in progress: setting status of source on creation (automatic

activation or not?).
This commit is contained in:
brunoherbelin
2020-06-22 23:52:31 +02:00
parent 8b35b0b4fe
commit 40037b3fa6
8 changed files with 52 additions and 12 deletions

View File

@@ -348,11 +348,11 @@ void MediaPlayer::play(bool on)
bool MediaPlayer::isPlaying(bool testpipeline) const
{
// image cannot play
if (!enabled_ || isimage_)
if (isimage_)
return false;
// if not ready yet, answer with requested state
if ( !testpipeline || pipeline_ == nullptr )
if ( !testpipeline || pipeline_ == nullptr || !enabled_)
return desired_state_ == GST_STATE_PLAYING;
// if ready, answer with actual state