EncoderPlugin: pass config_param reference
This commit is contained in:
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
|
||||
config_param param;
|
||||
param.AddBlockParam("quality", "5.0", -1);
|
||||
|
||||
const auto encoder = encoder_init(*plugin, ¶m, &error);
|
||||
const auto encoder = encoder_init(*plugin, param, &error);
|
||||
if (encoder == NULL) {
|
||||
g_printerr("Failed to initialize encoder: %s\n",
|
||||
error->message);
|
||||
|
@@ -56,7 +56,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
|
||||
config_param param;
|
||||
param.AddBlockParam("quality", "5.0", -1);
|
||||
|
||||
const auto encoder = encoder_init(*plugin, ¶m, NULL);
|
||||
const auto encoder = encoder_init(*plugin, param, NULL);
|
||||
assert(encoder != NULL);
|
||||
|
||||
/* open the encoder */
|
||||
|
Reference in New Issue
Block a user