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