projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various Doxygen fixes.
[dcpomatic.git]
/
src
/
lib
/
playlist.cc
diff --git
a/src/lib/playlist.cc
b/src/lib/playlist.cc
index a30dde633cde3120bc29cdc2b762e3c723f802de..aa365ead4f3939c5d51264c9cc057bfbdee83a36 100644
(file)
--- a/
src/lib/playlist.cc
+++ b/
src/lib/playlist.cc
@@
-159,7
+159,11
@@
Playlist::video_identifier () const
return digester.get ();
}
return digester.get ();
}
-/** @param node <Playlist> node */
+/** @param film Film that this Playlist is for.
+ * @param node <Playlist> node.
+ * @param version Metadata version number.
+ * @param notes Output notes about that happened.
+ */
void
Playlist::set_from_xml (shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, list<string>& notes)
{
void
Playlist::set_from_xml (shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, list<string>& notes)
{
@@
-173,7
+177,9
@@
Playlist::set_from_xml (shared_ptr<const Film> film, cxml::ConstNodePtr node, in
reconnect ();
}
reconnect ();
}
-/** @param node <Playlist> node */
+/** @param node <Playlist> node.
+ * @param with_content_paths true to include <Path> nodes in <Content> nodes, false to omit them.
+ */
void
Playlist::as_xml (xmlpp::Node* node, bool with_content_paths)
{
void
Playlist::as_xml (xmlpp::Node* node, bool with_content_paths)
{
@@
-536,3
+542,15
@@
Playlist::content_summary (DCPTimePeriod period) const
return best_summary;
}
return best_summary;
}
+
+bool
+Playlist::video_content_at (DCPTime time) const
+{
+ BOOST_FOREACH (shared_ptr<Content> i, _content) {
+ if (i->video && i->position() <= time && time < i->end()) {
+ return true;
+ }
+ }
+
+ return false;
+}