Skip to content

Commit

Permalink
VideoPlayer: do not signal error if playback was aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Mar 26, 2018
1 parent 6edbbdc commit 9c4f2f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/cores/VideoPlayer/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2510,10 +2510,10 @@ void CVideoPlayer::OnExit()
bool error = m_error;
bool abort = m_bAbortRequest;
m_outboundEvents->Submit([=]() {
if (error)
cb->OnPlayBackError();
else if (abort)
if (abort)
cb->OnPlayBackStopped();
else if (error)
cb->OnPlayBackError();
else
cb->OnPlayBackEnded();
});
Expand Down

0 comments on commit 9c4f2f4

Please sign in to comment.