webm2pes: Rename Convert to ConvertToFile().

Change-Id: I98a928ff5b00e8961183136316be3615fd7462fe
This commit is contained in:
Tom Finegan
2015-12-16 15:52:42 -08:00
parent e8fca12fb6
commit aa3593ec36
3 changed files with 4 additions and 4 deletions

View File

@@ -243,7 +243,7 @@ bool PesHeader::Write(std::FILE* file, bool write_pts) const {
// Webm2Pes methods. // Webm2Pes methods.
// //
bool Webm2Pes::Convert() { bool Webm2Pes::ConvertToFile() {
if (input_file_name_.empty() || output_file_name_.empty()) { if (input_file_name_.empty() || output_file_name_.empty()) {
std::fprintf(stderr, "Webm2Pes: input and/or output file name(s) empty.\n"); std::fprintf(stderr, "Webm2Pes: input and/or output file name(s) empty.\n");
return false; return false;

View File

@@ -169,9 +169,9 @@ class Webm2Pes {
Webm2Pes(Webm2Pes&&) = delete; Webm2Pes(Webm2Pes&&) = delete;
~Webm2Pes() = default; ~Webm2Pes() = default;
// Converts the VPx video stream to a PES and returns true. Returns false // Converts the VPx video stream to a PES file and returns true. Returns false
// to report failure. // to report failure.
bool Convert(); bool ConvertToFile();
private: private:
// fclose functor for wrapping FILE in std::unique_ptr. // fclose functor for wrapping FILE in std::unique_ptr.

View File

@@ -28,5 +28,5 @@ int main(int argc, const char* argv[]) {
const std::string output_path = argv[2]; const std::string output_path = argv[2];
libwebm::Webm2Pes converter(input_path, output_path); libwebm::Webm2Pes converter(input_path, output_path);
return converter.Convert() == true ? EXIT_SUCCESS : EXIT_FAILURE; return converter.ConvertToFile() == true ? EXIT_SUCCESS : EXIT_FAILURE;
} }