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
72934aec
Commit
72934aec
authored
Jan 02, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework: Fix grouped event sending, and remove a debugging assert that isn't true anymore.
parent
c1c79c58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
extras/MacOSX/Framework/Sources/VLCEventManager.m
extras/MacOSX/Framework/Sources/VLCEventManager.m
+0
-1
extras/MacOSX/Framework/Sources/VLCMediaList.m
extras/MacOSX/Framework/Sources/VLCMediaList.m
+0
-3
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
+0
-2
No files found.
extras/MacOSX/Framework/Sources/VLCEventManager.m
View file @
72934aec
...
...
@@ -117,7 +117,6 @@ static void * EventDispatcherMainLoop(void * user_data)
[
message_newer
->
target
release
];
[
message_newer
->
u
.
object
release
];
[[
self
messageQueue
]
removeObjectAtIndex
:
i
];
i
++
;
continue
;
}
/* It should be a good idea not to collapse event, with other kind of event in-between
...
...
extras/MacOSX/Framework/Sources/VLCMediaList.m
View file @
72934aec
...
...
@@ -300,14 +300,11 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
int
end
=
[[[
arrayOfArgs
objectAtIndex
:
[
arrayOfArgs
count
]
-
1
]
objectForKey
:
@"index"
]
intValue
];
NSRange
range
=
NSMakeRange
(
start
,
end
-
start
);
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndexesInRange
:
range
]
forKey
:
@"media"
];
int
i
=
[[[
arrayOfArgs
objectAtIndex
:
0
]
objectForKey
:
@"index"
]
intValue
];
[
arrayOfArgs
retain
];
for
(
NSDictionary
*
args
in
arrayOfArgs
)
{
int
index
=
[[
args
objectForKey
:
@"index"
]
intValue
];
VLCMedia
*
media
=
[
args
objectForKey
:
@"media"
];
/* Sanity check */
NSAssert
(
i
==
index
,
@"Expects some troubles, inserted items are not in a range"
);
i
++
;
if
(
index
&&
index
>=
[
cachedMedia
count
]
)
index
=
[
cachedMedia
count
]
-
1
;
[
cachedMedia
insertObject
:
media
atIndex
:
index
];
...
...
extras/MacOSX/Framework/Sources/VLCMediaListAspect.m
View file @
72934aec
...
...
@@ -256,7 +256,6 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndexesInRange
:
range
]
forKey
:
@"media"
];
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndexesInRange
:
range
]
forKey
:
@"node"
];
int
i
=
[[[
arrayOfArgs
objectAtIndex
:
0
]
objectForKey
:
@"index"
]
intValue
];
for
(
NSDictionary
*
args
in
arrayOfArgs
)
{
int
index
=
[[
args
objectForKey
:
@"index"
]
intValue
];
...
...
@@ -265,7 +264,6 @@ static void HandleMediaListViewItemDeleted( const libvlc_event_t * event, void *
[
node
setMedia
:
media
];
[
node
setChildren
:[
self
childrenAtIndex
:
index
]];
/* Sanity check */
NSAssert
(
i
==
index
,
@"Expects some troubles, inserted items are not in a range"
);
i
++
;
if
(
index
&&
index
>=
[
cachedNode
count
]
)
index
=
[
cachedNode
count
]
-
1
;
[
cachedNode
insertObject
:
node
atIndex
:
index
];
...
...
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