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 @@ ...@@ -68,11 +68,18 @@
if (_rootMedia == media) if (_rootMedia == media)
return; return;
[_rootMedia release]; [_rootMedia release];
_rootMedia = [media retain]; _rootMedia = nil;
VLCMediaList *mediaList = [[VLCMediaList alloc] init]; VLCMediaList *mediaList = [[VLCMediaList alloc] init];
if (media) if (media)
[mediaList addMedia:media]; [mediaList addMedia:media];
// This will clean rootMedia
[self setMediaList:mediaList]; [self setMediaList:mediaList];
// Thus set rootMedia here.
_rootMedia = [media retain];
[mediaList release]; [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