streamer_sniff_test: Little improvements

* Print tracks detected count.
* Delete media file before to exit.
This commit is contained in:
Dario Casalinuovo 2016-05-31 00:53:37 +02:00
parent 0a2584e464
commit 2838795413

View File

@ -29,9 +29,13 @@ int main(int argc, char *argv[])
if (mediaFile->InitCheck() != B_OK) {
printf("Failed creation of BMediaFile!\n");
printf("Error: %s\n", strerror(mediaFile->InitCheck()));
return 0;
}
} else {
printf("Sniffing Success!\n");
printf("Success!\n");
sleep(5);
printf("Tracks Detected: %d\n", mediaFile->CountTracks());
sleep(5);
}
delete mediaFile;
return 0;
}