Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
547cfbf4
Commit
547cfbf4
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: ExecuteOnMainThread is not used, delete it.
parent
669f25d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
65 deletions
+0
-65
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+0
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+0
-64
No files found.
modules/gui/macosx/intf.h
View file @
547cfbf4
...
...
@@ -46,7 +46,6 @@
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
int
ExecuteOnMainThread
(
id
target
,
SEL
sel
,
void
*
p_arg
);
unsigned
int
CocoaKeyToVLC
(
unichar
i_key
);
#define VLCIntf [[VLCMain sharedInstance] getIntf]
...
...
modules/gui/macosx/intf.m
View file @
547cfbf4
...
...
@@ -184,70 +184,6 @@ static void * ManageThread( void *user_data )
return
NULL
;
}
int
ExecuteOnMainThread
(
id
target
,
SEL
sel
,
void
*
p_arg
)
{
int
i_ret
=
0
;
//NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
if
(
[
target
respondsToSelector
:
@selector
(
performSelectorOnMainThread
:
withObject:waitUntilDone:
)]
)
{
[
target
performSelectorOnMainThread
:
sel
withObject:
[
NSValue
valueWithPointer
:
p_arg
]
waitUntilDone:
NO
];
}
else
if
(
NSApp
!=
nil
&&
[[
VLCMain
sharedInstance
]
respondsToSelector
:
@selector
(
getIntf
)]
)
{
NSValue
*
o_v1
;
NSValue
*
o_v2
;
NSArray
*
o_array
;
NSPort
*
o_recv_port
;
NSInvocation
*
o_inv
;
NSPortMessage
*
o_msg
;
intf_thread_t
*
p_intf
;
NSConditionLock
*
o_lock
;
NSMethodSignature
*
o_sig
;
id
*
val
[]
=
{
&
o_lock
,
&
o_v2
};
p_intf
=
(
intf_thread_t
*
)
VLCIntf
;
o_recv_port
=
[[
NSPort
port
]
retain
];
o_v1
=
[
NSValue
valueWithPointer
:
val
];
o_v2
=
[
NSValue
valueWithPointer
:
p_arg
];
o_sig
=
[
target
methodSignatureForSelector
:
sel
];
o_inv
=
[
NSInvocation
invocationWithMethodSignature
:
o_sig
];
[
o_inv
setArgument
:
&
o_v1
atIndex
:
2
];
[
o_inv
setTarget
:
target
];
[
o_inv
setSelector
:
sel
];
o_array
=
[
NSArray
arrayWithObject
:
[
NSData
dataWithBytes
:
&
o_inv
length
:
sizeof
(
o_inv
)]];
o_msg
=
[[
NSPortMessage
alloc
]
initWithSendPort:
p_intf
->
p_sys
->
o_sendport
receivePort:
o_recv_port
components
:
o_array
];
o_lock
=
[[
NSConditionLock
alloc
]
initWithCondition
:
0
];
[
o_msg
sendBeforeDate
:
[
NSDate
distantPast
]];
[
o_lock
lockWhenCondition
:
1
];
[
o_lock
unlock
];
[
o_lock
release
];
[
o_msg
release
];
[
o_recv_port
release
];
}
else
{
i_ret
=
1
;
}
//[o_pool release];
return
(
i_ret
);
}
/*****************************************************************************
* playlistChanged: Callback triggered by the intf-change playlist
* variable, to let the intf update the playlist.
...
...
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