aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 16:57:37 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 16:57:37 +0100
commit39bf84aa9f2ff43aa3694fe9a5b501573c7746f5 (patch)
tree2d9534a658595537537b05f3c1dbfc494c5b61a0 /src/pipe.h
parent5347cca29d0b6df888122d09ec05101d24a227be (diff)
downloadmpd-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.h5
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? */