reconnect ();
}
+void
+Playlist::content_may_change ()
+{
+ ContentMayChange ();
+}
+
+void
+Playlist::content_not_changed ()
+{
+ ContentNotChanged ();
+}
+
void
Playlist::content_changed (weak_ptr<Content> content, int property, bool frequent)
{
DCPTime next;
BOOST_FOREACH (shared_ptr<Content> i, _content) {
- if (i->caption.empty() || find (placed.begin(), placed.end(), i) != placed.end()) {
+ if (i->text.empty() || find (placed.begin(), placed.end(), i) != placed.end()) {
continue;
}
BOOST_FOREACH (shared_ptr<const Content> i, _content) {
bool burn = false;
- BOOST_FOREACH (shared_ptr<TextContent> j, i->caption) {
+ BOOST_FOREACH (shared_ptr<TextContent> j, i->text) {
if (j->burn()) {
burn = true;
}
_content_connections.clear ();
BOOST_FOREACH (shared_ptr<Content> i, _content) {
- _content_connections.push_back (i->Changed.connect (bind (&Playlist::content_changed, this, _1, _2, _3)));
+ _content_connections.push_back (i->MayChange.connect(boost::bind(&Playlist::content_may_change, this)));
+ _content_connections.push_back (i->Changed.connect(boost::bind(&Playlist::content_changed, this, _1, _2, _3)));
+ _content_connections.push_back (i->NotChanged.connect(boost::bind(&Playlist::content_not_changed, this)));
}
}
}
DCPTime
-Playlist::caption_end () const
+Playlist::text_end () const
{
DCPTime end;
BOOST_FOREACH (shared_ptr<Content> i, _content) {
- if (!i->caption.empty ()) {
+ if (!i->text.empty ()) {
end = max (end, i->end ());
}
}