diff options
author | Max Kellermann <max@duempel.org> | 2013-09-26 22:41:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-26 22:41:07 +0200 |
commit | 7fa3b7a267e2e42c06a8350a807b2445b9588372 (patch) | |
tree | 30eafd2bd72f65c1f28b5b88e11182c741d93443 /src/PlayerThread.cxx | |
parent | f3fc76e3c821ae9a55ad9f5d1e71370b37431909 (diff) | |
download | mpd-7fa3b7a267e2e42c06a8350a807b2445b9588372.tar.gz mpd-7fa3b7a267e2e42c06a8350a807b2445b9588372.tar.xz mpd-7fa3b7a267e2e42c06a8350a807b2445b9588372.zip |
PlayerThread: simplify "buffer empty" assertion
Diffstat (limited to 'src/PlayerThread.cxx')
-rw-r--r-- | src/PlayerThread.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index 6cf8e556b..3e03e5978 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -1143,13 +1143,7 @@ player_task(gpointer arg) pc->Lock(); player_command_finished_locked(pc); -#ifndef NDEBUG - /* in the DEBUG build, check for leaked - music_chunk objects by freeing the - music_buffer */ - delete player_buffer; - player_buffer = new MusicBuffer(pc->buffer_chunks); -#endif + assert(player_buffer->IsEmptyUnsafe()); break; |