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
33437a4e
Commit
33437a4e
authored
Mar 26, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* accept %H:%M:%S and %M:%S as valid syntax as well (additionally to just %S)
parent
c8de6d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+24
-2
No files found.
modules/gui/macosx/controls.m
View file @
33437a4e
...
...
@@ -572,8 +572,30 @@
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_input
)
{
input_Control
(
p_input
,
INPUT_SET_TIME
,
\
(
int64_t
)([
o_specificTime_enter_fld
intValue
]
*
1000000
));
unsigned
int
timeInSec
=
0
;
NSString
*
fieldContent
=
[
o_specificTime_enter_fld
stringValue
];
if
(
[[
fieldContent
componentsSeparatedByString
:
@":"
]
count
]
>
1
&&
[[
fieldContent
componentsSeparatedByString
:
@":"
]
count
]
<=
3
)
{
NSArray
*
ourTempArray
=
\
[
fieldContent
componentsSeparatedByString
:
@":"
];
if
(
[[
fieldContent
componentsSeparatedByString
:
@":"
]
count
]
==
3
)
{
timeInSec
+=
([[
ourTempArray
objectAtIndex
:
0
]
intValue
]
*
3600
);
//h
timeInSec
+=
([[
ourTempArray
objectAtIndex
:
1
]
intValue
]
*
60
);
//m
timeInSec
+=
[[
ourTempArray
objectAtIndex
:
2
]
intValue
];
//s
}
else
{
timeInSec
+=
([[
ourTempArray
objectAtIndex
:
0
]
intValue
]
*
60
);
//m
timeInSec
+=
[[
ourTempArray
objectAtIndex
:
1
]
intValue
];
//s
}
}
else
timeInSec
=
[
fieldContent
intValue
];
input_Control
(
p_input
,
INPUT_SET_TIME
,
(
int64_t
)(
timeInSec
*
1000000
));
vlc_object_release
(
p_input
);
}
...
...
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