decoder: use bool for return values and flags
Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
This commit is contained in:
@@ -41,7 +41,7 @@ void decoder_plugin_load(struct decoder_plugin * inputPlugin)
|
||||
if (!inputPlugin->name)
|
||||
return;
|
||||
|
||||
if (inputPlugin->init != NULL && inputPlugin->init() < 0)
|
||||
if (inputPlugin->init != NULL && !inputPlugin->init())
|
||||
return;
|
||||
|
||||
insertInList(inputPlugin_list, inputPlugin->name, (void *)inputPlugin);
|
||||
|
Reference in New Issue
Block a user