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
5ab6bfbd
Commit
5ab6bfbd
authored
May 17, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: more optimizations for bookmarks and wizard. no functional changes
parent
5f138ac2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
133 deletions
+82
-133
modules/gui/macosx/bookmarks.m
modules/gui/macosx/bookmarks.m
+6
-8
modules/gui/macosx/wizard.m
modules/gui/macosx/wizard.m
+76
-125
No files found.
modules/gui/macosx/bookmarks.m
View file @
5ab6bfbd
...
...
@@ -283,9 +283,8 @@ clear:
int
i_bookmarks
;
int
i_first
=
-
1
;
int
i_second
=
-
1
;
int
x
=
0
;
int
c
=
0
;
while
(
c
!=
2
)
for
(
NSUInteger
x
=
0
;
c
!=
2
;
x
++
)
{
if
([
o_tbl_dataTable
isRowSelected
:
x
])
{
...
...
@@ -300,7 +299,6 @@ clear:
c
=
2
;
}
}
x
=
(
x
+
1
);
}
msg_Dbg
(
VLCIntf
,
"got the bookmark-indexes"
);
...
...
@@ -415,17 +413,18 @@ clear:
}
else
{
if
([[
theTableColumn
identifier
]
isEqualToString
:
@"description"
])
NSString
*
identifier
=
[
theTableColumn
identifier
];
if
([
identifier
isEqualToString
:
@"description"
])
{
toBeReturned
=
pp_bookmarks
[
row
]
->
psz_name
;
ret
=
[
NSString
stringWithUTF8String
:
toBeReturned
];
}
else
if
([
[
theTableColumn
identifier
]
isEqualToString
:
@"size_offset"
])
else
if
([
identifier
isEqualToString
:
@"size_offset"
])
{
i_toBeReturned
=
pp_bookmarks
[
row
]
->
i_byte_offset
;
ret
=
[[
NSNumber
numberWithInt
:
i_toBeReturned
]
stringValue
];
}
else
if
([
[
theTableColumn
identifier
]
isEqualToString
:
@"time_offset"
])
else
if
([
identifier
isEqualToString
:
@"time_offset"
])
{
i_toBeReturned
=
pp_bookmarks
[
row
]
->
i_time_offset
;
ret
=
[[
NSNumber
numberWithInt
:
(
i_toBeReturned
/
1000000
)]
...
...
@@ -435,8 +434,7 @@ clear:
{
/* may not happen, just in case */
msg_Err
(
VLCIntf
,
"unknown table column identifier (%s) while "
"updating the bookmark table"
,
[[
theTableColumn
identifier
]
UTF8String
]
);
"updating the bookmark table"
,
[
identifier
UTF8String
]
);
ret
=
@"unknown identifier"
;
}
...
...
modules/gui/macosx/wizard.m
View file @
5ab6bfbd
This diff is collapsed.
Click to expand it.
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