aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_encoder.c
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/run_encoder.c
parentf672e4016f9930cdf6700bafce0793657be61f9a (diff)
downloadmpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.tar.gz
mpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.tar.xz
mpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.zip
test/run_encoder: fix encoder_open() call
Diffstat (limited to 'test/run_encoder.c')
-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);