diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 18 | ||||
| -rw-r--r-- | src/lib/film.h | 5 |
2 files changed, 15 insertions, 8 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 769ef72b6..f41371892 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -916,12 +916,6 @@ Film::set_key (dcp::Key key) signal_changed (KEY); } -shared_ptr<Playlist> -Film::playlist () const -{ - return _playlist; -} - ContentList Film::content () const { @@ -1226,3 +1220,15 @@ Film::audio_output_names () const return vector<string> (n.begin(), n.begin() + audio_channels ()); } + +void +Film::repeat_content (ContentList c, int n) +{ + _playlist->repeat (c, n); +} + +void +Film::remove_content (ContentList c) +{ + _playlist->remove (c); +} diff --git a/src/lib/film.h b/src/lib/film.h index da1c09d2f..f268bc5b7 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -101,8 +101,6 @@ public: std::vector<CPLSummary> cpls () const; - boost::shared_ptr<Playlist> playlist () const; - int audio_frame_rate () const; uint64_t required_disk_space () const; @@ -141,6 +139,8 @@ public: void make_audio_mapping_default (AudioMapping & mapping) const; std::vector<std::string> audio_output_names () const; + void repeat_content (ContentList, int); + /** Identifiers for the parts of our state; used for signalling changes. */ @@ -256,6 +256,7 @@ public: void examine_and_add_content (boost::shared_ptr<Content>); void add_content (boost::shared_ptr<Content>); void remove_content (boost::shared_ptr<Content>); + void remove_content (ContentList); void move_content_earlier (boost::shared_ptr<Content>); void move_content_later (boost::shared_ptr<Content>); void set_dcp_content_type (DCPContentType const *); |
