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
1f62202f
Commit
1f62202f
authored
Jul 20, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* some minor fixes (signed vs unsigned ints, removed an always ignored pragma, fixed an if)
parent
25b064e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
modules/gui/macosx/AppleRemote.m
modules/gui/macosx/AppleRemote.m
+4
-6
No files found.
modules/gui/macosx/AppleRemote.m
View file @
1f62202f
...
...
@@ -13,10 +13,8 @@ const int REMOTE_SWITCH_COOKIE=19;
@implementation
AppleRemote
#pragma public interface
-
(
id
)
init
{
if
(
self
=
[
super
init
]
)
{
if
(
self
=
=
[
super
init
]
)
{
openInExclusiveMode
=
YES
;
queue
=
NULL
;
hidDeviceInterface
=
NULL
;
...
...
@@ -154,7 +152,7 @@ static AppleRemote* sharedInstance=nil;
+
(
AppleRemote
*
)
sharedRemote
{
@synchronized
(
self
)
{
if
(
sharedInstance
==
nil
)
{
if
(
sharedInstance
==
nil
)
{
sharedInstance
=
[[
self
alloc
]
init
];
}
}
...
...
@@ -331,7 +329,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon,
memset(cookies, 0, sizeof(IOHIDElementCookie) * NUMBER_OF_APPLE_REMOTE_ACTIONS);
*/
allCookies
=
[[
NSMutableArray
alloc
]
init
];
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
elements
count
];
i
++
)
{
element
=
[
elements
objectAtIndex
:
i
];
...
...
@@ -372,7 +370,7 @@ static void QueueCallbackFunction(void* target, IOReturn result, void* refcon,
if
(
queue
)
{
result
=
(
*
queue
)
->
create
(
queue
,
0
,
12
);
//depth: maximum number of elements in queue before oldest elements in queue begin to be lost.
int
i
=
0
;
unsigned
int
i
=
0
;
for
(
i
=
0
;
i
<
[
allCookies
count
];
i
++
)
{
IOHIDElementCookie
cookie
=
(
IOHIDElementCookie
)[[
allCookies
objectAtIndex
:
i
]
intValue
];
(
*
queue
)
->
addElement
(
queue
,
cookie
,
0
);
...
...
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