call_callback(): Fix a shm leak in afs.c.
[paraslash.git] / afh_common.c
index 07e6a78c3aa4bcaf61e8645019c262473dbca023..47104500e23417850ef2d164e1c98a68eac74632 100644 (file)
@@ -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,