Skip to content

Commit

Permalink
Engine: fixed FLIC video not playing second time
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Feb 19, 2024
1 parent 5994b90 commit 84ab2b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/ac/global_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void PlayFlic(int numb, int scr_flags)

HError err = play_flc_video(numb, flags, skip);
if (!err)
debug_script_warn("Failed to play FLIC %n: %s", numb, err->FullMessage().GetCStr());
debug_script_warn("Failed to play FLIC %d: %s", numb, err->FullMessage().GetCStr());
}

void PlayVideo(const char* name, int skip, int scr_flags) {
Expand Down
1 change: 1 addition & 0 deletions Engine/media/video/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ HError FlicPlayer::OpenImpl(const AGS::Common::String &name, int& /*flags*/)

void FlicPlayer::CloseImpl()
{
close_fli();
if (_pf)
pack_fclose(_pf);
_pf = nullptr;
Expand Down

0 comments on commit 84ab2b5

Please sign in to comment.