From 1ddd9dd52a2439cc188d5372a4fc095aaebfd38d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 1 Oct 2012 23:04:40 +0200 Subject: test/run_encoder: fix encoder_open() call --- test/run_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/run_encoder.c b/test/run_encoder.c index 6a4108620..397dd8572 100644 --- a/test/run_encoder.c +++ b/test/run_encoder.c @@ -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); -- cgit v1.2.3