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
38c86a7b
Commit
38c86a7b
authored
Dec 28, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework/VLCMediaListAspect.m: Implement -parentMediaList.
parent
441f5996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
extras/MacOSX/Framework/Headers/Public/VLCMediaListAspect.h
extras/MacOSX/Framework/Headers/Public/VLCMediaListAspect.h
+4
-2
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
+10
-0
No files found.
extras/MacOSX/Framework/Headers/Public/VLCMediaListAspect.h
View file @
38c86a7b
...
...
@@ -41,9 +41,11 @@
{
void
*
p_mlv
;
//< Internal instance of media list view
NSMutableArray
*
cachedNode
;
VLCMediaList
*
parentMediaList
;
}
-
(
VLCMedia
*
)
mediaAtIndex
:(
int
)
index
;
-
(
VLCMediaListAspectNode
*
)
nodeAtIndex
:(
int
)
index
;
-
(
int
)
count
;
@end
\ No newline at end of file
-
(
VLCMediaList
*
)
parentMediaList
;
@end
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
View file @
38c86a7b
...
...
@@ -105,6 +105,7 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
// Release allocated memory
libvlc_media_list_view_release
(
p_mlv
);
[
cachedNode
release
];
[
parentMediaList
release
];
[
super
dealloc
];
}
-
(
VLCMedia
*
)
mediaAtIndex
:(
int
)
index
...
...
@@ -150,6 +151,11 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
return
result
;
}
-
(
VLCMediaList
*
)
parentMediaList
{
return
[[
parentMediaList
retain
]
autorelease
];
}
@end
@implementation
VLCMediaListAspect
(
LibVLCBridging
)
...
...
@@ -164,6 +170,10 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
{
p_mlv
=
p_new_mlv
;
libvlc_media_list_view_retain
(
p_mlv
);
libvlc_media_list_t
*
p_mlist
=
libvlc_media_list_view_parent_media_list
(
p_mlv
,
NULL
);
parentMediaList
=
[[
VLCMediaList
mediaListWithLibVLCMediaList
:
p_mlist
]
retain
];
libvlc_media_list_release
(
p_mlist
);
//libvlc_media_list_lock(p_mlv->p_mlist);
cachedNode
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
libvlc_media_list_view_count
(
p_mlv
,
NULL
)];
int
i
,
count
=
libvlc_media_list_view_count
(
p_mlv
,
NULL
);
...
...
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