aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.h
diff options
context:
space:
mode:
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? */