mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
increase explicit refcnt for playlists when used by a PlaylistSource
This commit is contained in:
parent
d1433992fb
commit
4d6ad4a499
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ PlaylistSource::PlaylistSource (Session& s, const ID& orig, const std::string& n
|
|||
_flags = Flag (_flags & ~(Writable|CanRename|Removable|RemovableIfEmpty|RemoveAtDestroy|Destructive));
|
||||
|
||||
_playlist = p;
|
||||
_playlist->use ();
|
||||
_playlist_offset = begin;
|
||||
_playlist_length = len;
|
||||
|
||||
|
|
@ -72,6 +73,7 @@ PlaylistSource::PlaylistSource (Session& s, const XMLNode& node)
|
|||
|
||||
PlaylistSource::~PlaylistSource ()
|
||||
{
|
||||
_playlist->release ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue