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
7a47acb9
Commit
7a47acb9
authored
May 02, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix custom playback options (close #8543)
parent
1e5b4699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+23
-21
No files found.
modules/gui/macosx/open.m
View file @
7a47acb9
...
...
@@ -453,27 +453,29 @@ static VLCOpen *_o_sharedMainInstance = nil;
p_item
->
list
.
i
[[
o_file_sub_size_pop
indexOfSelectedItem
]]]];
}
}
NSArray
*
components
=
[[
o_file_starttime_fld
stringValue
]
componentsSeparatedByString
:
@":"
];
NSUInteger
componentCount
=
[
components
count
];
NSInteger
tempValue
;
if
(
componentCount
==
1
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]);
else
if
(
componentCount
==
2
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]
*
60
+
[
components
[
1
]
intValue
]);
else
if
(
componentCount
==
3
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]
*
3600
+
[
components
[
1
]
intValue
]
*
60
+
[
components
[
2
]
intValue
]);
if
(
tempValue
>
0
)
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"start-time=%li"
,
tempValue
]];
components
=
[[
o_file_stoptime_fld
stringValue
]
componentsSeparatedByString
:
@":"
];
componentCount
=
[
components
count
];
if
(
componentCount
==
1
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]);
else
if
(
componentCount
==
2
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]
*
60
+
[
components
[
1
]
intValue
]);
else
if
(
componentCount
==
3
)
tempValue
=
1000000
*
([
components
[
0
]
intValue
]
*
3600
+
[
components
[
1
]
intValue
]
*
60
+
[
components
[
2
]
intValue
]);
if
(
tempValue
>
0
)
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"stop-time=%li"
,
tempValue
]];
if
([
o_file_custom_timing_ckb
state
]
==
NSOnState
)
{
NSArray
*
components
=
[[
o_file_starttime_fld
stringValue
]
componentsSeparatedByString
:
@":"
];
NSUInteger
componentCount
=
[
components
count
];
NSInteger
tempValue
;
if
(
componentCount
==
1
)
tempValue
=
[
components
[
0
]
intValue
];
else
if
(
componentCount
==
2
)
tempValue
=
[
components
[
0
]
intValue
]
*
60
+
[
components
[
1
]
intValue
];
else
if
(
componentCount
==
3
)
tempValue
=
[
components
[
0
]
intValue
]
*
3600
+
[
components
[
1
]
intValue
]
*
60
+
[
components
[
2
]
intValue
];
if
(
tempValue
>
0
)
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"start-time=%li"
,
tempValue
]];
components
=
[[
o_file_stoptime_fld
stringValue
]
componentsSeparatedByString
:
@":"
];
componentCount
=
[
components
count
];
if
(
componentCount
==
1
)
tempValue
=
[
components
[
0
]
intValue
];
else
if
(
componentCount
==
2
)
tempValue
=
[
components
[
0
]
intValue
]
*
60
+
[
components
[
1
]
intValue
];
else
if
(
componentCount
==
3
)
tempValue
=
[
components
[
0
]
intValue
]
*
3600
+
[
components
[
1
]
intValue
]
*
60
+
[
components
[
2
]
intValue
];
if
(
tempValue
>
0
)
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"stop-time=%li"
,
tempValue
]];
}
if
([
o_output_ckbox
state
]
==
NSOnState
)
{
NSArray
*
soutMRL
=
[
o_sout_options
soutMRL
];
NSUInteger
count
=
[
soutMRL
count
];
...
...
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