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
8e7d6eb1
Commit
8e7d6eb1
authored
Nov 06, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderInternal: wake up the player thread in _flush_chunk()
Merge duplicate code.
parent
5c18e4f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
DecoderAPI.cxx
src/DecoderAPI.cxx
+0
-4
DecoderInternal.cxx
src/DecoderInternal.cxx
+2
-0
No files found.
src/DecoderAPI.cxx
View file @
8e7d6eb1
...
...
@@ -312,7 +312,6 @@ do_send_tag(Decoder &decoder, const Tag &tag)
/* there is a partial chunk - flush it, we want the
tag in a new chunk */
decoder_flush_chunk
(
decoder
);
decoder
.
dc
.
client_cond
.
signal
();
}
assert
(
decoder
.
chunk
==
nullptr
);
...
...
@@ -422,7 +421,6 @@ decoder_data(Decoder &decoder,
if
(
dest
.
IsNull
())
{
/* the chunk is full, flush it */
decoder_flush_chunk
(
decoder
);
dc
.
client_cond
.
signal
();
continue
;
}
...
...
@@ -442,7 +440,6 @@ decoder_data(Decoder &decoder,
if
(
full
)
{
/* the chunk is full, flush it */
decoder_flush_chunk
(
decoder
);
dc
.
client_cond
.
signal
();
}
data
=
(
const
uint8_t
*
)
data
+
nbytes
;
...
...
@@ -535,7 +532,6 @@ decoder_replay_gain(Decoder &decoder,
replay gain values affect the following
samples */
decoder_flush_chunk
(
decoder
);
decoder
.
dc
.
client_cond
.
signal
();
}
}
else
decoder
.
replay_gain_serial
=
0
;
...
...
src/DecoderInternal.cxx
View file @
8e7d6eb1
...
...
@@ -100,4 +100,6 @@ decoder_flush_chunk(Decoder &decoder)
dc
.
pipe
->
Push
(
decoder
.
chunk
);
decoder
.
chunk
=
nullptr
;
dc
.
client_cond
.
signal
();
}
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