# HG changeset patch # User Matti Hamalainen # Date 1210273521 -10800 # Node ID b119d6f2e6c89255e97692635be57efa994e01c4 # Parent 7d7f7d9ae98e18d8b1daee3cc7e4e107b9f8570d Cosmetics. diff -r 7d7f7d9ae98e -r b119d6f2e6c8 src/sndfile/plugin.c --- a/src/sndfile/plugin.c Thu May 08 22:01:01 2008 +0300 +++ b/src/sndfile/plugin.c Thu May 08 22:05:21 2008 +0300 @@ -226,8 +226,9 @@ format = "Core Audio File"; break; default: - format = "unknown sndfile"; + format = "Unknown sndfile"; } + switch (tmp_sfinfo.format & SF_FORMAT_SUBMASK) { case SF_FORMAT_PCM_S8: @@ -319,7 +320,7 @@ codec = g_strdup_printf("%s", format); aud_tuple_associate_string(ti, FIELD_CODEC, NULL, codec); g_free(codec); - + aud_tuple_associate_string(ti, FIELD_QUALITY, NULL, lossy ? "lossy" : "lossless"); } @@ -352,9 +353,8 @@ /* Have to open the file to see if libsndfile can handle it. */ tmp_sndfile = open_sndfile_from_uri(filename, vfsfile, &tmp_sfinfo); - if (!tmp_sndfile) { + if (!tmp_sndfile) return FALSE; - } /* It can so close file and return TRUE. */ close_sndfile (tmp_sndfile, vfsfile); @@ -502,7 +502,7 @@ static void file_mseek (InputPlayback *playback, gulong millisecond) { - if (! sfinfo.seekable) + if (!sfinfo.seekable) return; seek_time = (glong)millisecond;