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
30fca5e5
Commit
30fca5e5
authored
Nov 02, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
music_pipe: pass frame size to tail_chunk()
Don't make tail_chunk() calculate the frame size again.
parent
fd0f195b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pipe.c
src/pipe.c
+2
-3
No files found.
src/pipe.c
View file @
30fca5e5
...
...
@@ -154,9 +154,8 @@ music_pipe_get_chunk(const unsigned i)
* room.
*/
static
struct
music_chunk
*
tail_chunk
(
float
data_time
,
uint16_t
bitRate
)
tail_chunk
(
float
data_time
,
uint16_t
bitRate
,
size_t
frame_size
)
{
const
size_t
frame_size
=
audio_format_frame_size
(
&
ob
.
audioFormat
);
unsigned
int
next
;
struct
music_chunk
*
chunk
;
...
...
@@ -197,7 +196,7 @@ size_t music_pipe_append(const void *data0, size_t datalen,
assert
((
datalen
%
frame_size
)
==
0
);
while
(
datalen
)
{
chunk
=
tail_chunk
(
data_time
,
bitRate
);
chunk
=
tail_chunk
(
data_time
,
bitRate
,
frame_size
);
if
(
chunk
==
NULL
)
return
ret
;
...
...
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