Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
17207ab1
Commit
17207ab1
authored
Feb 12, 2010
by
Emmanuel de Roux
Committed by
Pierre d'Herbemont
Feb 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Added [VLCMediaList initWithArray:] method
Signed-off-by:
Pierre d'Herbemont
<
pdherbemont@free.fr
>
parent
0c4edec7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
projects/macosx/framework/Headers/Public/VLCMediaList.h
projects/macosx/framework/Headers/Public/VLCMediaList.h
+6
-0
projects/macosx/framework/Sources/VLCMediaList.m
projects/macosx/framework/Sources/VLCMediaList.m
+11
-0
No files found.
projects/macosx/framework/Headers/Public/VLCMediaList.h
View file @
17207ab1
...
...
@@ -57,6 +57,12 @@ extern NSString * VLCMediaListItemDeleted;
NSMutableArray
*
cachedMedia
;
//< Private copy of media objects.
}
/**
* Init a MediaList with the media contained in array.
* \array an array of VLCMedia.
*/
-
(
id
)
initWithArray
:(
NSArray
*
)
array
;
/* Operations */
/**
* TODO: Documentation - [VLCMediaList lock]
...
...
projects/macosx/framework/Sources/VLCMediaList.m
View file @
17207ab1
...
...
@@ -86,6 +86,17 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
return
self
;
}
-
(
id
)
initWithArray
:(
NSArray
*
)
array
{
self
=
[
self
init
];
if
(
!
self
)
return
nil
;
for
(
VLCMedia
*
media
in
array
)
[
self
addMedia
:
media
];
return
self
;
}
-
(
void
)
release
{
@synchronized
(
self
)
...
...
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