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
da2ee7c7
Commit
da2ee7c7
authored
Feb 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: force some more methods to run on the main thread (refs #5779)
parent
24881258
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+5
-5
No files found.
modules/gui/macosx/intf.m
View file @
da2ee7c7
...
@@ -295,7 +295,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
...
@@ -295,7 +295,7 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
break
;
break
;
case
INPUT_EVENT_ITEM_NAME
:
case
INPUT_EVENT_ITEM_NAME
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updateName
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
playlistUpdated
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
playlistUpdated
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
...
@@ -305,12 +305,12 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
...
@@ -305,12 +305,12 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
break
;
break
;
case
INPUT_EVENT_DEAD
:
case
INPUT_EVENT_DEAD
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updateName
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_ABORT
:
case
INPUT_EVENT_ABORT
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updateName
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
...
@@ -347,7 +347,7 @@ static int PlaybackModeUpdated( vlc_object_t *p_this, const char *psz_var,
...
@@ -347,7 +347,7 @@ static int PlaybackModeUpdated( vlc_object_t *p_this, const char *psz_var,
vlc_value_t
oldval
,
vlc_value_t
new_val
,
void
*
param
)
vlc_value_t
oldval
,
vlc_value_t
new_val
,
void
*
param
)
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
[[
VLCMain
sharedInstance
]
p
laybackModeUpdated
];
[[
VLCMain
sharedInstance
]
p
erformSelectorOnMainThread
:
@selector
(
playbackModeUpdated
)
withObject
:
nil
waitUntilDone
:
NO
];
[
o_pool
release
];
[
o_pool
release
];
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
@@ -399,7 +399,7 @@ static int FullscreenChanged( vlc_object_t *p_this, const char *psz_variable,
...
@@ -399,7 +399,7 @@ static int FullscreenChanged( vlc_object_t *p_this, const char *psz_variable,
if
(
p_intf
)
if
(
p_intf
)
{
{
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
[[
VLCMain
sharedInstance
]
fullscreenChanged
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
fullscreenChanged
)
withObject
:
nil
waitUntilDone
:
NO
];
[
o_pool
release
];
[
o_pool
release
];
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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