diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
| commit | f76647abae551840a43bb8f07189051ec20bab6d (patch) | |
| tree | 12d67e33c71516480cb71381bc426dfe18513821 /src/asset.h | |
| parent | e8530ea06f0b0883e5e19dd18beed70732ac5d3c (diff) | |
Switch away from the many-constructor-arguments approach to a hopefully simpler API.
Diffstat (limited to 'src/asset.h')
| -rw-r--r-- | src/asset.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/asset.h b/src/asset.h index 940ed548..ec1385e6 100644 --- a/src/asset.h +++ b/src/asset.h @@ -53,7 +53,7 @@ public: * @param directory Directory where our XML or MXF file is. * @param file_name Name of our file within directory, or empty to make one up based on UUID. */ - Asset (boost::filesystem::path directory, std::string file_name = "", int edit_rate = 0, int intrinsic_duration = 0); + Asset (boost::filesystem::path directory, std::string file_name = ""); virtual ~Asset() {} @@ -123,6 +123,10 @@ public: _intrinsic_duration = d; } + void set_edit_rate (int r) { + _edit_rate = r; + } + virtual bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, std::string)>) const; protected: |
