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
861c0e2c
Commit
861c0e2c
authored
Jan 31, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: prevent AppKit calls from threads which aren't the main thread (fixes #5779
parent
18173044
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+6
-6
No files found.
modules/gui/macosx/intf.m
View file @
861c0e2c
...
@@ -249,13 +249,13 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
...
@@ -249,13 +249,13 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
switch
(
new_val
.
i_int
)
{
switch
(
new_val
.
i_int
)
{
case
INPUT_EVENT_STATE
:
case
INPUT_EVENT_STATE
:
[[
VLCMain
sharedInstance
]
p
laybackStatusUpdated
];
[[
VLCMain
sharedInstance
]
p
erformSelectorOnMainThread
:
@selector
(
playbackStatusUpdated
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_RATE
:
case
INPUT_EVENT_RATE
:
[[[
VLCMain
sharedInstance
]
mainMenu
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackRate
)
withObject
:
nil
waitUntilDone
:
NO
];
[[[
VLCMain
sharedInstance
]
mainMenu
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackRate
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_POSITION
:
case
INPUT_EVENT_POSITION
:
[[
VLCMain
sharedInstance
]
updatePlaybackPosition
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_TITLE
:
case
INPUT_EVENT_TITLE
:
case
INPUT_EVENT_CHAPTER
:
case
INPUT_EVENT_CHAPTER
:
...
@@ -296,22 +296,22 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
...
@@ -296,22 +296,22 @@ static int InputEvent( vlc_object_t *p_this, const char *psz_var,
case
INPUT_EVENT_ITEM_NAME
:
case
INPUT_EVENT_ITEM_NAME
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
p
laylistUpdated
];
[[
VLCMain
sharedInstance
]
p
erformSelectorOnMainThread
:
@selector
(
playlistUpdated
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_AUDIO_DELAY
:
case
INPUT_EVENT_AUDIO_DELAY
:
case
INPUT_EVENT_SUBTITLE_DELAY
:
case
INPUT_EVENT_SUBTITLE_DELAY
:
[[
VLCMain
sharedInstance
]
updateDelays
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updateDelays
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_DEAD
:
case
INPUT_EVENT_DEAD
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
updatePlaybackPosition
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
case
INPUT_EVENT_ABORT
:
case
INPUT_EVENT_ABORT
:
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
updateName
];
[[
VLCMain
sharedInstance
]
updatePlaybackPosition
];
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
updatePlaybackPosition
)
withObject
:
nil
waitUntilDone
:
NO
];
break
;
break
;
default:
default:
...
...
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