diff options
author | Max Kellermann <max@duempel.org> | 2008-11-02 16:57:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-02 16:57:37 +0100 |
commit | 39bf84aa9f2ff43aa3694fe9a5b501573c7746f5 (patch) | |
tree | 2d9534a658595537537b05f3c1dbfc494c5b61a0 /src/pipe.h | |
parent | 5347cca29d0b6df888122d09ec05101d24a227be (diff) | |
download | mpd-39bf84aa9f2ff43aa3694fe9a5b501573c7746f5.tar.gz mpd-39bf84aa9f2ff43aa3694fe9a5b501573c7746f5.tar.xz mpd-39bf84aa9f2ff43aa3694fe9a5b501573c7746f5.zip |
music_pipe: renamed "size" to "num_chunks"
The name "num_chunks" expresses the meaning of the variable better.
Diffstat (limited to 'src/pipe.h')
-rw-r--r-- | src/pipe.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pipe.h b/src/pipe.h index 51c8ed3f3..bfc1a7974 100644 --- a/src/pipe.h +++ b/src/pipe.h @@ -41,8 +41,7 @@ struct music_chunk { */ struct music_pipe { struct music_chunk *chunks; - - unsigned int size; + unsigned num_chunks; /** the index of the first decoded chunk */ unsigned int volatile begin; @@ -79,7 +78,7 @@ void music_pipe_set_lazy(bool lazy); static inline unsigned music_pipe_size(void) { - return music_pipe.size; + return music_pipe.num_chunks; } /** is the buffer empty? */ |