Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Cortado
Commits
55433941
Commit
55433941
authored
Mar 22, 2010
by
ogg.k.ogg.k
Browse files
fix DurationScanner for small streams
parent
59abcced
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/fluendo/player/DurationScanner.java
View file @
55433941
...
...
@@ -223,8 +223,8 @@ public class DurationScanner {
read
=
is
.
read
(
buffer
);
}
is
.
close
();
is
=
openWithConnection
(
url
,
user
,
password
,
contentLength
-
tailbytes
);
if
(
responseOffset
==
0
)
{
is
=
openWithConnection
(
url
,
user
,
password
,
Math
.
max
(
0
,
contentLength
-
tailbytes
)
)
;
if
(
responseOffset
==
0
&&
tailbytes
<
contentLength
)
{
Debug
.
warning
(
"DurationScanner: Couldn't complete duration scan due to failing range requests!"
);
return
-
1
;
}
...
...
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