]> code.delx.au - pulseaudio/commitdiff
sample: Use PA_SAMPLE_INVALID instead of numeric value
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 24 Feb 2011 09:16:01 +0000 (14:46 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 2 May 2011 04:47:20 +0000 (10:17 +0530)
src/pulse/sample.c

index 9698d8a55099a849438dad810869f2a08871bb33..50d552105223894fdf143c9c86ae44b838a1658d 100644 (file)
@@ -242,7 +242,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) {