# HG changeset patch # User Matti Hamalainen # Date 1206957469 -10800 # Node ID 1505a1e40090df0d0a6e8e4540211975c87d2671 # Parent b419d8924c0b60cc547c6cea0650ac73e7c1bc0e Use glib types. diff -r b419d8924c0b -r 1505a1e40090 src/madplug/xing.c --- a/src/madplug/xing.c Mon Mar 31 12:38:35 2008 +0300 +++ b/src/madplug/xing.c Mon Mar 31 12:57:49 2008 +0300 @@ -20,7 +20,6 @@ */ #include - #include "xing.h" #define XING_MAGIC (('X' << 24) | ('i' << 16) | ('n' << 8) | 'g') @@ -44,8 +43,7 @@ * DESCRIPTION: parse a Xing VBR header */ int -xing_parse(struct xing *xing, struct mad_bitptr ptr, - unsigned int bitlen) +xing_parse(struct xing *xing, struct mad_bitptr ptr, guint bitlen) { if (bitlen < 64 || mad_bit_read(&ptr, 32) != XING_MAGIC) goto fail; @@ -70,14 +68,14 @@ } if (xing->flags & XING_TOC) { - int i; + gint i; if (bitlen < 800) goto fail; for (i = 0; i < 100; ++i) xing->toc[i] = mad_bit_read(&ptr, 8); - + bitlen -= 800; } diff -r b419d8924c0b -r 1505a1e40090 src/madplug/xing.h --- a/src/madplug/xing.h Mon Mar 31 12:38:35 2008 +0300 +++ b/src/madplug/xing.h Mon Mar 31 12:57:49 2008 +0300 @@ -20,15 +20,15 @@ #ifndef XING_H #define XING_H -#include "mad.h" +#include struct xing { - long flags; /* valid fields (see below) */ - unsigned long frames; /* total number of frames */ - unsigned long bytes; /* total number of bytes */ - unsigned char toc[100]; /* 100-point seek table */ - long scale; /* ?? */ + guint flags; /* valid fields (see below) */ + guint frames; /* total number of frames */ + guint bytes; /* total number of bytes */ + guchar toc[100]; /* 100-point seek table */ + gulong scale; /* ?? */ }; enum