#include "compose.hpp"
#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
-#include <boost/shared_ptr.hpp>
+#include <boost/bind/placeholders.hpp>
#include <boost/foreach.hpp>
#include <iostream>
using std::string;
using std::pair;
using boost::optional;
-using boost::shared_ptr;
-using boost::weak_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::weak_ptr;
+using std::dynamic_pointer_cast;
using namespace dcpomatic;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
Playlist::Playlist ()
: _sequence (true)
void
Playlist::content_change (weak_ptr<const Film> weak_film, ChangeType type, weak_ptr<Content> content, int property, bool frequent)
{
- /* Make sure we only hear about atomic changes (e.g. a PENDING always with the DONE/CANCELLED)
- Ignore any DONE/CANCELLED that arrives without a PENDING.
- */
- if (_checker.send (type, property)) {
- return;
- }
-
shared_ptr<const Film> film = weak_film.lock ();
DCPOMATIC_ASSERT (film);
}
if (changed) {
- OrderChanged ();
+ OrderChange ();
}
/* The length might have changed, and that's good enough for this signal */