Merge pull request #4788 from lioncash/avidump
AVIDump: Rename CloseFile to CloseVideoFile
This commit is contained in:
commit
cf5a17145f
|
@ -73,7 +73,7 @@ bool AVIDump::Start(int w, int h)
|
||||||
bool success = CreateVideoFile();
|
bool success = CreateVideoFile();
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
CloseFile();
|
CloseVideoFile();
|
||||||
OSD::AddMessage("AVIDump Start failed");
|
OSD::AddMessage("AVIDump Start failed");
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
|
@ -257,13 +257,13 @@ void AVIDump::AddFrame(const u8* data, int width, int height, int stride, const
|
||||||
void AVIDump::Stop()
|
void AVIDump::Stop()
|
||||||
{
|
{
|
||||||
av_write_trailer(s_format_context);
|
av_write_trailer(s_format_context);
|
||||||
CloseFile();
|
CloseVideoFile();
|
||||||
s_file_index = 0;
|
s_file_index = 0;
|
||||||
NOTICE_LOG(VIDEO, "Stopping frame dump");
|
NOTICE_LOG(VIDEO, "Stopping frame dump");
|
||||||
OSD::AddMessage("Stopped dumping frames");
|
OSD::AddMessage("Stopped dumping frames");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AVIDump::CloseFile()
|
void AVIDump::CloseVideoFile()
|
||||||
{
|
{
|
||||||
if (s_stream)
|
if (s_stream)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ class AVIDump
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
static bool CreateVideoFile();
|
static bool CreateVideoFile();
|
||||||
static void CloseFile();
|
static void CloseVideoFile();
|
||||||
static void CheckResolution(int width, int height);
|
static void CheckResolution(int width, int height);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue