Skip to content

Commit

Permalink
Allowing to pause while connecting.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpreussner committed Nov 20, 2016
1 parent 37f611c commit 43f2f19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/NdiMedia/Private/Player/NdiMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,7 @@ void FNdiMediaPlayer::TickPlayer(float DeltaTime)
}

// update player state
EMediaState State = NDIlib_recv_is_connected(ReceiverInstance)
? (Paused ? EMediaState::Paused : EMediaState::Playing)
: EMediaState::Preparing;
EMediaState State = Paused ? EMediaState::Paused : (NDIlib_recv_is_connected(ReceiverInstance) ? EMediaState::Playing : EMediaState::Preparing);

if ((State != CurrentState) && (AudioSink != nullptr))
{
Expand Down

0 comments on commit 43f2f19

Please sign in to comment.