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
2d8ef3b2
Commit
2d8ef3b2
authored
May 18, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: don't continue playback where left off if user set a custom start-time
parent
98dd4679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+9
-1
No files found.
modules/gui/macosx/playlist.m
View file @
2d8ef3b2
...
...
@@ -1479,6 +1479,14 @@
if
(
!
p_item
)
return
;
/* allow the user to over-write the start-time */
if
(
p_item
->
i_options
>
0
)
{
for
(
int
x
=
0
;
x
<
p_item
->
i_options
;
x
++
)
{
if
(
strstr
(
p_item
->
ppsz_options
[
x
],
"start-time"
))
return
;
}
}
char
*
psz_url
=
decode_URI
(
input_item_GetURI
(
p_item
));
NSString
*
url
=
[
NSString
stringWithUTF8String
:
psz_url
?
psz_url
:
""
];
free
(
psz_url
);
...
...
@@ -1491,7 +1499,7 @@
long
long
int
dur
=
input_item_GetDuration
(
p_item
)
/
1000000
;
int
current_pos_in_sec
=
(
f_current_pos
*
dur
)
/
100
;
if
(
current_pos_in_sec
==
0
||
current_pos_in_sec
>=
lastPosition
.
intValue
)
if
(
current_pos_in_sec
>=
lastPosition
.
intValue
)
return
;
int
settingValue
=
config_GetInt
(
VLCIntf
,
"macosx-continue-playback"
);
...
...
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