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
7e968781
Commit
7e968781
authored
Jun 09, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: don't store playback position information for non-file URLs
parent
e3634203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+10
-3
No files found.
modules/gui/macosx/playlist.m
View file @
7e968781
...
...
@@ -1537,12 +1537,19 @@
if
(
!
p_item
)
return
;
NSUserDefaults
*
defaults
=
[
NSUserDefaults
standardUserDefaults
];
NSMutableDictionary
*
mutDict
=
[[
NSMutableDictionary
alloc
]
initWithDictionary
:[
defaults
objectForKey
:
@"recentlyPlayedMedia"
]];
char
*
psz_url
=
decode_URI
(
input_item_GetURI
(
p_item
));
NSString
*
url
=
[
NSString
stringWithUTF8String
:
psz_url
?
psz_url
:
""
];
free
(
psz_url
);
if
(
url
.
length
<
1
)
return
;
if
(
!
[[
NSURL
URLWithString
:
url
]
isFileURL
])
return
;
NSUserDefaults
*
defaults
=
[
NSUserDefaults
standardUserDefaults
];
NSMutableDictionary
*
mutDict
=
[[
NSMutableDictionary
alloc
]
initWithDictionary
:[
defaults
objectForKey
:
@"recentlyPlayedMedia"
]];
vlc_value_t
pos
;
var_Get
(
p_input_thread
,
"position"
,
&
pos
);
float
f_current_pos
=
100
.
*
pos
.
f_float
;
...
...
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