Skip to content

Commit

Permalink
Merge pull request #8490 from vadosnaprimer/dumping
Browse files Browse the repository at this point in the history
2 minor dumping fixes
  • Loading branch information
phire committed Nov 24, 2019
2 parents 45ba745 + cb6a632 commit ac77df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/FrameDump.cpp
Expand Up @@ -84,9 +84,8 @@ bool FrameDump::Start(int w, int h)


s_width = w; s_width = w;
s_height = h; s_height = h;

s_last_frame_is_valid = false;
s_last_pts = 0; s_last_pts = 0;
s_last_frame_is_valid = s_file_index != 0;


InitAVCodec(); InitAVCodec();
bool success = CreateVideoFile(); bool success = CreateVideoFile();
Expand Down Expand Up @@ -393,6 +392,7 @@ void FrameDump::Stop()
av_write_trailer(s_format_context); av_write_trailer(s_format_context);
CloseVideoFile(); CloseVideoFile();
s_file_index = 0; s_file_index = 0;
s_start_dumping = false;
NOTICE_LOG(VIDEO, "Stopping frame dump"); NOTICE_LOG(VIDEO, "Stopping frame dump");
OSD::AddMessage("Stopped dumping frames"); OSD::AddMessage("Stopped dumping frames");
} }
Expand Down

0 comments on commit ac77df9

Please sign in to comment.