diff options
Diffstat (limited to 'src/lib/options.h')
| -rw-r--r-- | src/lib/options.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/options.h b/src/lib/options.h index 39068c24f..2fc5f77ff 100644 --- a/src/lib/options.h +++ b/src/lib/options.h @@ -56,11 +56,15 @@ public: * @param t true to return a temporary file path, otherwise a permanent one. * @return The path to write this video frame to. */ - std::string frame_out_path (int f, bool t) const { + std::string frame_out_path (int f, bool t, std::string e = "") const { + if (e.empty ()) { + e = _frame_out_extension; + } + std::stringstream s; s << _frame_out_path << "/"; s.width (8); - s << std::setfill('0') << f << _frame_out_extension; + s << std::setfill('0') << f << e; if (t) { s << ".tmp"; |
