]> code.delx.au - pulseaudio/blobdiff - src/pulse/sample.c
More spelling fixes
[pulseaudio] / src / pulse / sample.c
index 9698d8a55099a849438dad810869f2a08871bb33..b6136120d28a7fdf69fda39bda773268052a63ba 100644 (file)
 #endif
 
 #include <stdio.h>
-#include <math.h>
 #include <string.h>
 
 #include <pulse/timeval.h>
-#include <pulse/i18n.h>
 
 #include <pulsecore/core-util.h>
+#include <pulsecore/i18n.h>
 #include <pulsecore/macro.h>
 
 #include "sample.h"
@@ -242,7 +241,7 @@ pa_sample_format_t pa_parse_sample_format(const char *format) {
     else if (strcasecmp(format, "s24-32re") == 0)
         return PA_SAMPLE_S24_32RE;
 
-    return -1;
+    return PA_SAMPLE_INVALID;
 }
 
 int pa_sample_format_is_le(pa_sample_format_t f) {