From: Andre Noll Date: Thu, 13 Nov 2008 18:38:50 +0000 (+0100) Subject: guess_audio_format(): Return proper error code. X-Git-Tag: v0.3.3~37 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=6c5220a23d66668e88929b2ba0f66758ab90a7be;p=paraslash.git 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)". --- 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,