Skip to content

Commit

Permalink
Engine: fixed TheoraPlayer to flag when video or audio is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Feb 29, 2024
1 parent 1f8fb8f commit 8dfeb73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Engine/media/video/theora_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ HError TheoraPlayer::OpenImpl(std::unique_ptr<Stream> data_stream,
return err;

_name = name;
if ((_apegStream->flags & APEG_HAS_VIDEO) == 0)
flags &= ~kVideo_EnableVideo;
if ((_apegStream->flags & APEG_HAS_AUDIO) == 0)
flags &= ~kVideo_EnableAudio;
_dataStream = std::move(data_stream);
return HError::None();
}
Expand Down

0 comments on commit 8dfeb73

Please sign in to comment.