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
9521c92f
Commit
9521c92f
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player_thread: removed decode(), renamed decodeParent()
decode() is a trivial wrapper for decodeParent(). Merge both and rename them to do_play().
parent
70904adf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
player_thread.c
src/player_thread.c
+4
-15
No files found.
src/player_thread.c
View file @
9521c92f
...
...
@@ -165,7 +165,7 @@ static int playChunk(ob_chunk * chunk,
return
0
;
}
static
void
d
ecodeParent
(
void
)
static
void
d
o_play
(
void
)
{
int
do_pause
=
0
;
int
buffering
=
1
;
...
...
@@ -181,8 +181,10 @@ static void decodeParent(void)
/** the position of the first chunk in the next song */
int
next
=
-
1
;
ob_clear
();
ob_set_lazy
(
0
);
dc_start
(
&
pc
.
notify
,
pc
.
next_song
);
if
(
waitOnDecode
(
&
decodeWaitedOn
)
<
0
)
{
quitDecode
();
return
;
...
...
@@ -371,19 +373,6 @@ static void decodeParent(void)
quitDecode
();
}
/* decode w/ buffering
* this will fork another process
* child process does decoding
* parent process does playing audio
*/
static
void
decode
(
void
)
{
ob_clear
();
dc_start
(
&
pc
.
notify
,
pc
.
next_song
);
decodeParent
();
}
static
void
*
player_task
(
mpd_unused
void
*
arg
)
{
notify_enter
(
&
pc
.
notify
);
...
...
@@ -391,7 +380,7 @@ static void * player_task(mpd_unused void *arg)
while
(
1
)
{
switch
(
pc
.
command
)
{
case
PLAYER_COMMAND_PLAY
:
d
ecode
();
d
o_play
();
break
;
case
PLAYER_COMMAND_STOP
:
...
...
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