test/run_decoder: auto-initialize struct Decoder
This commit is contained in:
parent
3452625fac
commit
316ddc2382
|
@ -41,6 +41,9 @@
|
|||
|
||||
struct Decoder {
|
||||
bool initialized;
|
||||
|
||||
Decoder()
|
||||
:initialized(false) {}
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -203,8 +206,6 @@ int main(int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
decoder.initialized = false;
|
||||
|
||||
if (plugin->file_decode != nullptr) {
|
||||
plugin->FileDecode(decoder, Path::FromFS(uri));
|
||||
} else if (plugin->stream_decode != nullptr) {
|
||||
|
|
Loading…
Reference in New Issue