13
0

Fix logic for when to request buffer overwrite.

git-svn-id: svn://localhost/ardour2/branches/3.0@6848 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-04-02 22:45:50 +00:00
parent 12ce8f17f4
commit e31c2e4dcb

View File

@ -347,7 +347,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
return 0;
}
bool no_prior_playlist = true;
bool prior_playlist = false;
{
Glib::Mutex::Lock lm (state_lock);
@ -360,7 +360,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
if (_playlist) {
_playlist->release();
no_prior_playlist = false;
prior_playlist = true;
}
_playlist = playlist;
@ -380,7 +380,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
take care of the buffer refill.
*/
if (!overwrite_queued && no_prior_playlist) {
if (!overwrite_queued && prior_playlist) {
_session.request_overwrite_buffer (this);
overwrite_queued = true;
}