lib/chromaprint/DecoderClient: replace method PrintResult()

This commit is contained in:
Max Kellermann
2019-04-05 13:40:05 +02:00
parent 9f1c23e217
commit a30af2ba42
3 changed files with 8 additions and 5 deletions

View File

@@ -135,7 +135,8 @@ try {
return EXIT_FAILURE;
}
client.PrintResult();
client.Finish();
printf("%s\n", client.GetFingerprint().c_str());
return EXIT_SUCCESS;
} catch (...) {
PrintException(std::current_exception());