Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fac2543c
Commit
fac2543c
authored
Feb 01, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCKit/VLCMedia.m: Fix the compare: function.
parent
6576b0b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
extras/MacOSX/Framework/Sources/VLCMedia.m
extras/MacOSX/Framework/Sources/VLCMedia.m
+4
-6
No files found.
extras/MacOSX/Framework/Sources/VLCMedia.m
View file @
fac2543c
...
...
@@ -132,6 +132,7 @@ static void HandleMediaMetaChanged(const libvlc_event_t * event, void * self)
static
void
HandleMediaStateChanged
(
const
libvlc_event_t
*
event
,
void
*
self
)
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
[[
VLCEventManager
sharedManager
]
callOnMainThreadObject
:
self
withMethod:
@selector
(
setStateAsNumber
:)
withArgumentAsObject:
[
NSNumber
numberWithInt
:
...
...
@@ -263,14 +264,11 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
-
(
NSComparisonResult
)
compare
:(
VLCMedia
*
)
media
{
libvlc_media_descriptor_t
*
anOtherMd
=
[
media
libVLCMediaDescriptor
];
/* We can release, we'll just use ptr */
libvlc_media_descriptor_release
(
anOtherMd
);
if
(
self
==
media
||
p_md
==
anOtherMd
)
if
(
self
==
media
)
return
NSOrderedSame
;
else
if
(
!
media
)
if
(
!
media
)
return
NSOrderedDescending
;
return
NSOrderedAscending
;
return
p_md
==
[
media
libVLCMediaDescriptor
]
?
NSOrderedSame
:
NSOrderedAscending
;
}
@synthesize
delegate
;
...
...
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