summaryrefslogtreecommitdiff
path: root/src/lib/options.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-17 23:36:18 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-17 23:36:18 +0000
commit8dd455ba867122056e2093e259a9a045aeeea451 (patch)
tree1e4ca9f9a413fc34acace48b28297fd3e4d26982 /src/lib/options.h
parentc421f6a5551f0755737f57fbeac6a0157599e0e8 (diff)
Various fixes to still-image mode.
Diffstat (limited to 'src/lib/options.h')
-rw-r--r--src/lib/options.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/options.h b/src/lib/options.h
index 4457969f3..10cdfa8cd 100644
--- a/src/lib/options.h
+++ b/src/lib/options.h
@@ -54,15 +54,11 @@ 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 (SourceFrame f, bool t, std::string e = "") const {
- if (e.empty ()) {
- e = _frame_out_extension;
- }
-
+ std::string frame_out_path (SourceFrame f, bool t) const {
std::stringstream s;
s << _frame_out_path << "/";
s.width (8);
- s << std::setfill('0') << f << e;
+ s << std::setfill('0') << f << _frame_out_extension;
if (t) {
s << ".tmp";
@@ -71,6 +67,10 @@ public:
return s.str ();
}
+ std::string hash_out_path (SourceFrame f, bool t) const {
+ return frame_out_path (f, t) + ".md5";
+ }
+
/** @return Path to write multichannel audio data to */
std::string multichannel_audio_out_path () const {
return _multichannel_audio_out_path;