Commit 8152b0d8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Set root media after setting the playlist.

parent cea6e05e
......@@ -68,11 +68,18 @@
if (_rootMedia == media)
return;
[_rootMedia release];
_rootMedia = [media retain];
_rootMedia = nil;
VLCMediaList *mediaList = [[VLCMediaList alloc] init];
if (media)
[mediaList addMedia:media];
// This will clean rootMedia
[self setMediaList:mediaList];
// Thus set rootMedia here.
_rootMedia = [media retain];
[mediaList release];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment