aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-01 23:04:40 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 00:17:08 +0200
commit1ddd9dd52a2439cc188d5372a4fc095aaebfd38d (patch)
tree41a525d2fa907fd0280f2ea035fc6d6a50f60994 /test
parentf672e4016f9930cdf6700bafce0793657be61f9a (diff)
test/run_encoder: fix encoder_open() call
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 6a410862..397dd857 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);