diff options
| author | JosJuice <josjuice@gmail.com> | 2018-01-17 22:11:44 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2018-01-17 22:19:14 +0100 |
| commit | 2441fd28d578fb6984a6cab494ccd96cc4ebfb02 (patch) | |
| tree | 24711b5bb21be0343e2385676d65acaa135dc7d3 /Source/Core/VideoCommon/AVIDump.cpp | |
| parent | e02025b45e0ee25a325e25dd96efafd8849ddc45 (diff) | |
AVIDump: Remove incorrect usage of s_ prefix
Diffstat (limited to 'Source/Core/VideoCommon/AVIDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AVIDump.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index f93ef73978..5ae81cd65a 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -100,16 +100,16 @@ static std::string GetDumpPath(const std::string& format) if (!g_Config.sDumpPath.empty()) return g_Config.sDumpPath; - std::string s_dump_path = File::GetUserPath(D_DUMPFRAMES_IDX) + "framedump" + - std::to_string(s_file_index) + "." + format; + const std::string dump_path = File::GetUserPath(D_DUMPFRAMES_IDX) + "framedump" + + std::to_string(s_file_index) + "." + format; // Ask to delete file - if (File::Exists(s_dump_path)) + if (File::Exists(dump_path)) { if (SConfig::GetInstance().m_DumpFramesSilent || - AskYesNoT("Delete the existing file '%s'?", s_dump_path.c_str())) + AskYesNoT("Delete the existing file '%s'?", dump_path.c_str())) { - File::Delete(s_dump_path); + File::Delete(dump_path); } else { @@ -118,29 +118,29 @@ static std::string GetDumpPath(const std::string& format) } } - return s_dump_path; + return dump_path; } bool AVIDump::CreateVideoFile() { - const std::string& s_format = g_Config.sDumpFormat; + const std::string& format = g_Config.sDumpFormat; - std::string s_dump_path = GetDumpPath(s_format); + const std::string dump_path = GetDumpPath(format); - if (s_dump_path.empty()) + if (dump_path.empty()) return false; - File::CreateFullPath(s_dump_path); + File::CreateFullPath(dump_path); - AVOutputFormat* output_format = av_guess_format(s_format.c_str(), s_dump_path.c_str(), nullptr); + AVOutputFormat* output_format = av_guess_format(format.c_str(), dump_path.c_str(), nullptr); if (!output_format) { - ERROR_LOG(VIDEO, "Invalid format %s", s_format.c_str()); + ERROR_LOG(VIDEO, "Invalid format %s", format.c_str()); return false; } - if (avformat_alloc_output_context2(&s_format_context, output_format, nullptr, - s_dump_path.c_str()) < 0) + if (avformat_alloc_output_context2(&s_format_context, output_format, nullptr, dump_path.c_str()) < + 0) { ERROR_LOG(VIDEO, "Could not allocate output context"); return false; |
