streamer_sniff_test: Little improvements
* Print tracks detected count. * Delete media file before to exit.
This commit is contained in:
parent
0a2584e464
commit
2838795413
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user