DecoderList: fix the decoder_plugin_from_mime_type() return value
This commit is contained in:
parent
2d696f46c3
commit
7f1130b52b
@ -180,11 +180,9 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
|
|||||||
const struct DecoderPlugin *
|
const struct DecoderPlugin *
|
||||||
decoder_plugin_from_name(const char *name)
|
decoder_plugin_from_name(const char *name)
|
||||||
{
|
{
|
||||||
decoder_plugins_find([=](const DecoderPlugin &plugin){
|
return decoder_plugins_find([=](const DecoderPlugin &plugin){
|
||||||
return strcmp(plugin.name, name) == 0;
|
return strcmp(plugin.name, name) == 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
return nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user