queue disk buffer overwrite when playlist layering changes.
This is a first approximation. Doing this 100% efficiently is quite hard because it would require comparing the range currently in the disk buffer and the range impacted by the layer change. I suspect this will work fine for the foreseeable future
This commit is contained in:
parent
bfd66b2ea0
commit
def273ea71
@ -386,6 +386,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
|
||||
}
|
||||
|
||||
_playlist->ContentsChanged.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_modified, this));
|
||||
_playlist->LayeringChanged.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_modified, this));
|
||||
_playlist->DropReferences.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_deleted, this, boost::weak_ptr<Playlist>(_playlist)));
|
||||
_playlist->RangesMoved.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_ranges_moved, this, _1, _2));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user