13
0

increase explicit refcnt for playlists when used by a PlaylistSource

This commit is contained in:
Paul Davis 2020-01-08 12:13:54 -07:00
parent d1433992fb
commit 4d6ad4a499

View File

@ -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