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 a8b5a26ebbc0c4e91a9385d2aa67b5a724cf9bb2..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,12
+177,14
@@
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
void
-Playlist::as_xml (xmlpp::Node* node)
+Playlist::as_xml (xmlpp::Node* node
, bool with_content_paths
)
{
BOOST_FOREACH (shared_ptr<Content> i, _content) {
{
BOOST_FOREACH (shared_ptr<Content> i, _content) {
- i->as_xml (node->add_child ("Content"));
+ i->as_xml (node->add_child ("Content")
, 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;
+}