Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c3fc84de
Commit
c3fc84de
authored
Jan 09, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/curl: wake up client thread after seek to end of file
Call SeekDone() to avoid the freeze bug.
parent
904f83cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+1
-0
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+3
-1
No files found.
NEWS
View file @
c3fc84de
ver 0.20.1 (not yet released)
ver 0.20.1 (not yet released)
* input
* input
- curl: fix crash bug
- curl: fix crash bug
- curl: fix freeze bug
* decoder
* decoder
- wavpack: fix crash bug
- wavpack: fix crash bug
* storage
* storage
...
...
src/input/plugins/CurlInputPlugin.cxx
View file @
c3fc84de
...
@@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
...
@@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
FreeEasy
();
FreeEasy
();
offset
=
new_offset
;
offset
=
new_offset
;
if
(
offset
==
size
)
if
(
offset
==
size
)
{
/* seek to EOF: simulate empty result; avoid
/* seek to EOF: simulate empty result; avoid
triggering a "416 Requested Range Not Satisfiable"
triggering a "416 Requested Range Not Satisfiable"
response */
response */
SeekDone
();
return
;
return
;
}
InitEasy
();
InitEasy
();
...
...
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