diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 21:38:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 21:38:46 +0100 |
commit | e9b71a0d2846321dcf3f985b9f6332d051374edd (patch) | |
tree | cc916958e67731f68e496459383a913e28509bda /src/PlayerThread.cxx | |
parent | efbfe66f21a8865454bc7a9e32305c84c09ba4be (diff) | |
download | mpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.tar.gz mpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.tar.xz mpd-e9b71a0d2846321dcf3f985b9f6332d051374edd.zip |
MusicChunk: move functions to methods
Diffstat (limited to '')
-rw-r--r-- | src/PlayerThread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index a394b8445..624698f5c 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -686,7 +686,7 @@ play_chunk(struct player_control *pc, const struct audio_format *format, GError **error_r) { - assert(music_chunk_check_format(chunk, format)); + assert(chunk->CheckFormat(*format)); if (chunk->tag != NULL) update_song_tag(song, chunk->tag); @@ -766,7 +766,7 @@ play_next_chunk(struct player *player) chunk->mix_ratio = nan(""); } - if (music_chunk_is_empty(other_chunk)) { + if (other_chunk->IsEmpty()) { /* the "other" chunk was a music_chunk which had only a tag, but no music data - we cannot cross-fade that; |