Various Doxygen fixes.
[dcpomatic.git] / src / lib / playlist.cc
index a30dde633cde3120bc29cdc2b762e3c723f802de..aa365ead4f3939c5d51264c9cc057bfbdee83a36 100644 (file)
@@ -159,7 +159,11 @@ Playlist::video_identifier () const
        return digester.get ();
 }
 
-/** @param node <Playlist> node */
+/** @param film Film that this Playlist is for.
+ *  @param node &lt;Playlist&gt; 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)
 {
@@ -173,7 +177,9 @@ Playlist::set_from_xml (shared_ptr<const Film> film, cxml::ConstNodePtr node, in
        reconnect ();
 }
 
-/** @param node <Playlist> node */
+/** @param node &lt;Playlist&gt; node.
+ *  @param with_content_paths true to include &lt;Path&gt; nodes in &lt;Content&gt; nodes, false to omit them.
+ */
 void
 Playlist::as_xml (xmlpp::Node* node, bool with_content_paths)
 {
@@ -536,3 +542,15 @@ Playlist::content_summary (DCPTimePeriod period) const
 
        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;
+}