# HG changeset patch # User Matti Hamalainen # Date 1210272895 -10800 # Node ID 6fdb69f0f16923bdf25450e51db4032b710768ca # Parent f6efe94f2793cf1621a0f84ca589e92a75ce1334 Use Glib types. diff -r f6efe94f2793 -r 6fdb69f0f169 src/sndfile/plugin.c --- a/src/sndfile/plugin.c Thu May 08 21:51:47 2008 +0300 +++ b/src/sndfile/plugin.c Thu May 08 21:54:55 2008 +0300 @@ -45,8 +45,8 @@ static SNDFILE *sndfile = NULL; static SF_INFO sfinfo; -static int song_length; -static int bit_rate = 0; +static gint song_length; +static gint bit_rate = 0; static glong seek_time = -1; static GThread *decode_thread; @@ -127,12 +127,12 @@ } static void -fill_song_tuple (char *filename, Tuple *ti) +fill_song_tuple (gchar *filename, Tuple *ti) { VFSFile *vfsfile = NULL; SNDFILE *tmp_sndfile; SF_INFO tmp_sfinfo; - unsigned int lossy = 0; + guint lossy = 0; gchar *codec = NULL, *format, *subformat = NULL; GString *codec_gs = NULL; @@ -319,7 +319,7 @@ aud_tuple_associate_string(ti, FIELD_QUALITY, NULL, "lossless"); } -static gchar *get_title(char *filename) +static gchar *get_title(gchar *filename) { Tuple *tuple; gchar *title; @@ -337,8 +337,8 @@ return title; } -static int -is_our_file (char *filename) +static gint +is_our_file (gchar *filename) { VFSFile *vfsfile = NULL; SNDFILE *tmp_sndfile; @@ -361,8 +361,8 @@ static gpointer play_loop (gpointer arg) { - static short buffer [BUFFER_SIZE]; - int samples; + static gshort buffer[BUFFER_SIZE]; + gint samples; InputPlayback *playback = arg; for (;;) @@ -432,7 +432,7 @@ play_start (InputPlayback *playback) { VFSFile *vfsfile = NULL; - int pcmbitwidth; + gint pcmbitwidth; gchar *song_title; if (sndfile) /* already opened */ @@ -521,7 +521,7 @@ return ti; } -static int is_our_file_from_vfs(char *filename, VFSFile *fin) +static gint is_our_file_from_vfs(gchar *filename, VFSFile *fin) { SNDFILE *tmp_sndfile; SF_INFO tmp_sfinfo;