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
06422f72
Commit
06422f72
authored
May 18, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes for playing streams
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1053
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
746e7477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
inputStream_http.c
src/inputStream_http.c
+4
-2
No files found.
src/inputStream_http.c
View file @
06422f72
...
...
@@ -220,7 +220,7 @@ static int finishHTTPInit(InputStream * inStream) {
return
-
1
;
}
memset
(
request
,
0
,
204
8
);
memset
(
request
,
0
,
204
9
);
snprintf
(
request
,
2048
,
"GET %s HTTP/1.1
\r\n
"
"Host: %s
\r\n
"
"Connection: close
\r\n
"
...
...
@@ -266,6 +266,7 @@ static int getHTTPHello(InputStream * inStream) {
if
(
ret
<
0
)
{
data
->
connState
=
HTTP_CONN_STATE_CLOSED
;
close
(
data
->
sock
);
data
->
buflen
=
0
;
return
-
1
;
}
...
...
@@ -283,6 +284,7 @@ static int getHTTPHello(InputStream * inStream) {
if
(
readed
<=
0
)
{
data
->
connState
=
HTTP_CONN_STATE_CLOSED
;
close
(
data
->
sock
);
data
->
buflen
=
0
;
return
-
1
;
}
...
...
@@ -475,7 +477,7 @@ size_t inputStream_httpRead(InputStream * inStream, void * ptr, size_t size,
data
->
buflen
-=
readed
;
memmove
(
data
->
buffer
,
data
->
buffer
+
readed
,
data
->
buflen
);
inStream
->
offset
=
readed
;
inStream
->
offset
+
=
readed
;
return
readed
;
}
...
...
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