]> code.delx.au - pulseaudio/blobdiff - src/tests/resampler-test.c
Remove unnecessary #includes
[pulseaudio] / src / tests / resampler-test.c
index 69d7ab0c7e5e2d9379eb2e8b003e848823703075..78461da57c72324483d369a79386f888a90eac12 100644 (file)
@@ -37,7 +37,6 @@
 #include <pulsecore/endianmacros.h>
 #include <pulsecore/memblock.h>
 #include <pulsecore/sample-util.h>
-#include <pulsecore/core-rtclock.h>
 #include <pulsecore/core-util.h>
 
 static void dump_block(const pa_sample_spec *ss, const pa_memchunk *chunk) {
@@ -346,7 +345,6 @@ int main(int argc, char *argv[]) {
             case 'v':
                 pa_log_set_level(PA_LOG_DEBUG);
                 verbose = 1;
-                ret = 0;
                 break;
 
             case ARG_VERSION:
@@ -403,6 +401,7 @@ int main(int argc, char *argv[]) {
         }
     }
 
+    ret = 0;
     pa_assert_se(pool = pa_mempool_new(FALSE, 0));
 
     if (!all_formats) {
@@ -420,7 +419,7 @@ int main(int argc, char *argv[]) {
 
         ts = pa_rtclock_now();
         pa_assert_se(resampler = pa_resampler_new(pool, &a, NULL, &b, NULL, method, 0));
-        printf("init: %llu\n", pa_rtclock_now() - ts);
+        printf("init: %llu\n", (long long unsigned)(pa_rtclock_now() - ts));
 
         i.memblock = pa_memblock_new(pool, pa_usec_to_bytes(1*PA_USEC_PER_SEC, &a) / pa_frame_size(&a));
 
@@ -431,12 +430,11 @@ int main(int argc, char *argv[]) {
             pa_resampler_run(resampler, &i, &j);
             pa_memblock_unref(j.memblock);
         }
-        printf("resampling: %llu\n", pa_rtclock_now() - ts);
+        printf("resampling: %llu\n", (long long unsigned)(pa_rtclock_now() - ts));
         pa_memblock_unref(i.memblock);
 
         pa_resampler_free(resampler);
 
-        ret = 0;
         goto quit;
     }