Commit 1ddd9dd5 authored by Max Kellermann's avatar Max Kellermann

test/run_encoder: fix encoder_open() call

parent f672e401
......@@ -99,8 +99,7 @@ int main(int argc, char **argv)
}
}
ret = encoder_open(encoder, &audio_format, &error);
if (encoder == NULL) {
if (!encoder_open(encoder, &audio_format, &error)) {
g_printerr("Failed to open encoder: %s\n",
error->message);
g_error_free(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment