summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-24 11:12:11 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-24 11:12:11 +0100
commit05bafe7346705a8a3f6bbae17956c54ef3295bcc (patch)
tree970e223e618067adea9419d2211594d334137987 /src
parentf3fc4b2a63ccc0a4da61371b3c2b10c8e9b8247d (diff)
Only emit Changed when things are added to or removed from the playlist.
Diffstat (limited to 'src')
-rw-r--r--src/lib/playlist.cc4
-rw-r--r--src/lib/playlist.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc
index dc87fbfab..e847e623b 100644
--- a/src/lib/playlist.cc
+++ b/src/lib/playlist.cc
@@ -367,8 +367,6 @@ Playlist::move_earlier (shared_ptr<Content> c)
(*previous)->set_position (p + c->length_after_trim ());
c->set_position (p);
sort (_content.begin(), _content.end(), ContentSorter ());
-
- Changed ();
}
void
@@ -394,8 +392,6 @@ Playlist::move_later (shared_ptr<Content> c)
(*next)->set_position (c->position ());
c->set_position (p + c->length_after_trim ());
sort (_content.begin(), _content.end(), ContentSorter ());
-
- Changed ();
}
FrameRateChange
diff --git a/src/lib/playlist.h b/src/lib/playlist.h
index effc52101..12380696b 100644
--- a/src/lib/playlist.h
+++ b/src/lib/playlist.h
@@ -82,8 +82,12 @@ public:
void repeat (ContentList, int);
+ /** Emitted when content has been added to or removed from the playlist */
mutable boost::signals2::signal<void ()> Changed;
- /** Third parameter is true if signals are currently being emitted frequently */
+ /** Emitted when something about a piece of our content has changed;
+ * these emissions include when the position of the content changes.
+ * Third parameter is true if signals are currently being emitted frequently.
+ */
mutable boost::signals2::signal<void (boost::weak_ptr<Content>, int, bool)> ContentChanged;
private: