From 6c5220a23d66668e88929b2ba0f66758ab90a7be Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 13 Nov 2008 19:38:50 +0100 Subject: [PATCH] guess_audio_format(): Return proper error code. This could cause para_server to return bogus messages back to the client, including messages containing the string "(null)". --- afh_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afh_common.c b/afh_common.c index 07e6a78c..47104500 100644 --- a/afh_common.c +++ b/afh_common.c @@ -97,9 +97,9 @@ void afh_init(void) * * \param name The filename. * - * \return This function returns -1 if it has no idea what kind of audio - * file this might be. Otherwise the (non-negative) number of the audio format - * is returned. + * \return This function returns \p -E_AUDIO_FORMAT if it has no idea what kind + * of audio file this might be. Otherwise the (non-negative) number of the + * audio format is returned. */ int guess_audio_format(const char *name) { @@ -119,7 +119,7 @@ int guess_audio_format(const char *name) return i; } } - return -1; + return -E_AUDIO_FORMAT; } char *make_taginfo(char *title, char *artist, char *album, char *year, -- 2.39.2