Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
8152b0d8
Commit
8152b0d8
authored
Aug 30, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Set root media after setting the playlist.
parent
cea6e05e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
projects/macosx/framework/Sources/VLCMediaListPlayer.m
projects/macosx/framework/Sources/VLCMediaListPlayer.m
+8
-1
No files found.
projects/macosx/framework/Sources/VLCMediaListPlayer.m
View file @
8152b0d8
...
@@ -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
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment