aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/run_encoder.c3
1 files changed, 1 insertions, 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);