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
c069b89d
Commit
c069b89d
authored
Apr 12, 2008
by
Max Kellermann
Committed by
Eric Wong
Apr 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use unsigned integers in outputBuffer.c
The chunk index cannot be negative. git-svn-id:
https://svn.musicpd.org/mpd/trunk@7231
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
b60789dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
outputBuffer.c
src/outputBuffer.c
+1
-1
outputBuffer.h
src/outputBuffer.h
+2
-2
No files found.
src/outputBuffer.c
View file @
c069b89d
...
...
@@ -118,7 +118,7 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
while
(
datalen
)
{
if
(
currentChunk
!=
cb
->
end
)
{
int
next
=
cb
->
end
+
1
;
unsigned
int
next
=
cb
->
end
+
1
;
if
(
next
>=
buffered_chunks
)
{
next
=
0
;
}
...
...
src/outputBuffer.h
View file @
c069b89d
...
...
@@ -38,8 +38,8 @@ typedef struct _OutputBuffer {
mpd_uint16
*
volatile
chunkSize
;
mpd_uint16
*
volatile
bitRate
;
float
*
volatile
times
;
mpd_
s
int16
volatile
begin
;
mpd_
s
int16
volatile
end
;
mpd_
u
int16
volatile
begin
;
mpd_
u
int16
volatile
end
;
AudioFormat
audioFormat
;
ConvState
convState
;
MetadataChunk
metadataChunks
[
BUFFERED_METACHUNKS
];
...
...
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