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
9eadb517
Commit
9eadb517
authored
Oct 31, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player_thread: simplified thread destruction
Simply use "return" instead of g_thread_exit().
parent
1ae4e4dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
player_thread.c
src/player_thread.c
+2
-4
No files found.
src/player_thread.c
View file @
9eadb517
...
...
@@ -744,6 +744,7 @@ static void do_play(void)
/* XXX race condition: check decoder again */
player_wait_decoder
();
decoder_unlock
();
player_lock
();
continue
;
}
else
{
/* buffering is complete */
...
...
@@ -920,8 +921,7 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
music_buffer_free
(
player_buffer
);
player_command_finished
();
g_thread_exit
(
NULL
);
break
;
return
NULL
;
case
PLAYER_COMMAND_CANCEL
:
pc
.
next_song
=
NULL
;
...
...
@@ -938,8 +938,6 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
break
;
}
}
return
NULL
;
}
void
player_create
(
void
)
...
...
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