PlayerThread: simplify "buffer empty" assertion

This commit is contained in:
Max Kellermann
2013-09-26 22:41:07 +02:00
parent f3fc76e3c8
commit 7fa3b7a267
2 changed files with 12 additions and 7 deletions

View File

@@ -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;