Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
aa648afd
Commit
aa648afd
authored
Apr 08, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua_http: fix duration printing.
parent
7f67708e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
share/lua/http/js/functions.js
share/lua/http/js/functions.js
+1
-1
share/lua/http/requests/playlist.xml
share/lua/http/requests/playlist.xml
+1
-1
No files found.
share/lua/http/js/functions.js
View file @
aa648afd
...
...
@@ -616,7 +616,7 @@ function parse_playlist()
pl
.
appendChild
(
document
.
createTextNode
(
elt
.
getAttribute
(
'
name
'
)
)
);
var
duration
=
elt
.
getAttribute
(
'
duration
'
);
if
(
duration
>
0
)
pl
.
appendChild
(
document
.
createTextNode
(
"
(
"
+
format_time
(
elt
.
getAttribute
(
'
duration
'
)
/
1000000
)
+
"
)
"
)
);
pl
.
appendChild
(
document
.
createTextNode
(
"
(
"
+
format_time
(
elt
.
getAttribute
(
'
duration
'
)
)
+
"
)
"
)
);
pos
.
appendChild
(
pl
);
if
(
elt
.
getAttribute
(
'
ro
'
)
==
'
rw
'
)
...
...
share/lua/http/requests/playlist.xml
View file @
aa648afd
...
...
@@ -57,7 +57,7 @@ function print_playlist(item)
current = 'current="current"'
end
end
print('
<leaf
id=
"' ..tostring(item.id).. '"
uri=
"' ..tostring(path).. '"
name=
"' ..name.. '"
ro=
"' ..(item.flags.ro and "
ro"
or
"rw")..
'"
duration =
"' ..
tostring
(item.duration).. '"
'
..current..
'
/>
')
print('
<leaf
id=
"' ..tostring(item.id).. '"
uri=
"' ..tostring(path).. '"
name=
"' ..name.. '"
ro=
"' ..(item.flags.ro and "
ro"
or
"rw")..
'"
duration =
"' ..
math.floor
(item.duration).. '"
'
..current..
'
/>
')
end
end
...
...
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