forked from um/kgg-dec
fix: print error on qmc2 creation failure instead of crash.
This commit is contained in:
parent
edbe9ae708
commit
2908525c5c
@ -59,6 +59,11 @@ class KggTask {
|
||||
}
|
||||
|
||||
auto qmc2 = QMC2::Create(ekey);
|
||||
if (!qmc2) {
|
||||
error(L"create qmc2 instance failed (ekey decode error?)");
|
||||
fprintf(stderr, "%s\n", ekey.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
std::string magic(4, 0);
|
||||
kgg_stream_in.seekg(offset_to_audio, std::ios::beg);
|
||||
|
Loading…
Reference in New Issue
Block a user