summaryrefslogtreecommitdiff
path: root/src/lib/file_group.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-23 13:12:04 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-23 13:12:04 +0000
commit13b2b8f48f3f1a22277a760a7fada980b9f37677 (patch)
tree53f32b233750fd0d64ebf877248bcd1a5c9bd9fd /src/lib/file_group.cc
parent10f55bf3a2ac9340263a410fa2a69f1360f5c227 (diff)
Use FileGroup in FFmpeg.
Diffstat (limited to 'src/lib/file_group.cc')
-rw-r--r--src/lib/file_group.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index cdd78c6a3..9c2065141 100644
--- a/src/lib/file_group.cc
+++ b/src/lib/file_group.cc
@@ -25,6 +25,13 @@
using std::vector;
using std::cout;
+FileGroup::FileGroup ()
+ : _current_path (0)
+ , _current_file (0)
+{
+
+}
+
FileGroup::FileGroup (boost::filesystem::path p)
: _current_path (0)
, _current_file (0)
@@ -49,6 +56,13 @@ FileGroup::~FileGroup ()
}
}
+void
+FileGroup::set_paths (vector<boost::filesystem::path> const & p)
+{
+ _paths = p;
+ ensure_open_path (0);
+ seek (0, SEEK_SET);
+}
/** Ensure that the given path index in the content is the _current_file */
void