test/run_encoder: fix encoder_open() call

This commit is contained in:
Max Kellermann 2012-10-01 23:04:40 +02:00
parent f672e4016f
commit 1ddd9dd52a

View File

@ -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);