Skip to content

Commit

Permalink
FIX: video shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Feb 22, 2024
1 parent f2107aa commit 518b13a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Engine/media/video/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,6 @@ void video_resume()
gl_Video->Play();
}

void video_shutdown()
{
gl_Video.reset();
}

//-----------------------------------------------------------------------------
// TEMPORARY API
// FOR TESTING NON-BLOCKING VIDEOS
Expand Down Expand Up @@ -395,6 +390,15 @@ void update_video_system_on_game_loop()
sync_video_playback();
}

//-----------------------------------------------------------------------------

void video_shutdown()
{
video_core_shutdown(); // video core system
gl_Video.reset();
gl_VideoObjects.clear();
}

#else

void play_theora_video(const char *name, int video_flags, int state_flags, AGS::Engine::VideoSkipType skip) {}
Expand Down

0 comments on commit 518b13a

Please sign in to comment.