DecoderPlugin: move functions into the struct
This commit is contained in:
@@ -181,8 +181,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool success = decoder_plugin_scan_file(*plugin, path,
|
||||
&print_handler, NULL);
|
||||
bool success = plugin->ScanFile(path, print_handler, nullptr);
|
||||
if (!success && plugin->scan_stream != NULL) {
|
||||
Mutex mutex;
|
||||
Cond cond;
|
||||
@@ -209,8 +208,7 @@ int main(int argc, char **argv)
|
||||
|
||||
mutex.unlock();
|
||||
|
||||
success = decoder_plugin_scan_stream(*plugin, is,
|
||||
&print_handler, NULL);
|
||||
success = plugin->ScanStream(*is, print_handler, nullptr);
|
||||
is->Close();
|
||||
}
|
||||
|
||||
|
@@ -184,8 +184,7 @@ int main(int argc, char **argv)
|
||||
decoder.initialized = false;
|
||||
|
||||
if (decoder.plugin->file_decode != NULL) {
|
||||
decoder_plugin_file_decode(*decoder.plugin, &decoder,
|
||||
decoder.uri);
|
||||
decoder.plugin->FileDecode(decoder, decoder.uri);
|
||||
} else if (decoder.plugin->stream_decode != NULL) {
|
||||
Mutex mutex;
|
||||
Cond cond;
|
||||
@@ -201,7 +200,7 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
decoder_plugin_stream_decode(*decoder.plugin, &decoder, is);
|
||||
decoder.plugin->StreamDecode(decoder, *is);
|
||||
|
||||
is->Close();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user