diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 22:00:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 22:20:14 +0100 |
commit | d9ea3082fb608935c72620e272f4b3e74b2c3a44 (patch) | |
tree | 5353513725721f49c0296520b0f55f760dacf8a5 /test/run_encoder.cxx | |
parent | 2d63c26936b2b9acfb8f2f81a109e4aff0b26fe7 (diff) |
ConfigData: add constructors/destructors
Diffstat (limited to 'test/run_encoder.cxx')
-rw-r--r-- | test/run_encoder.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/run_encoder.cxx b/test/run_encoder.cxx index 3d500d0b2..e2ecab583 100644 --- a/test/run_encoder.cxx +++ b/test/run_encoder.cxx @@ -49,7 +49,6 @@ int main(int argc, char **argv) const char *encoder_name; const struct encoder_plugin *plugin; struct encoder *encoder; - struct config_param *param; static char buffer[32768]; /* parse command line */ @@ -74,10 +73,10 @@ int main(int argc, char **argv) return 1; } - param = config_new_param(NULL, -1); - config_add_block_param(param, "quality", "5.0", -1); + config_param param; + config_add_block_param(¶m, "quality", "5.0", -1); - encoder = encoder_init(plugin, param, &error); + encoder = encoder_init(plugin, ¶m, &error); if (encoder == NULL) { g_printerr("Failed to initialize encoder: %s\n", error->message); |