music_pipe: moved struct music_chunk to chunk.h

This commit is contained in:
Max Kellermann
2009-03-03 22:23:25 +01:00
parent 1063c1f2e3
commit c655f804a9
8 changed files with 103 additions and 44 deletions

View File

@@ -17,6 +17,7 @@
*/
#include "pipe.h"
#include "chunk.h"
#include "notify.h"
#include "audio_format.h"
#include "tag.h"
@@ -27,20 +28,6 @@
struct music_pipe music_pipe;
static void
music_chunk_init(struct music_chunk *chunk)
{
chunk->length = 0;
chunk->tag = NULL;
}
static void
music_chunk_free(struct music_chunk *chunk)
{
if (chunk->tag != NULL)
tag_free(chunk->tag);
}
void
music_pipe_init(unsigned int size, struct notify *notify)
{