diff options
author | Max Kellermann <max@duempel.org> | 2012-10-01 23:04:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-10-02 00:17:08 +0200 |
commit | 1ddd9dd52a2439cc188d5372a4fc095aaebfd38d (patch) | |
tree | 41a525d2fa907fd0280f2ea035fc6d6a50f60994 | |
parent | f672e4016f9930cdf6700bafce0793657be61f9a (diff) | |
download | mpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.tar.gz mpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.tar.xz mpd-1ddd9dd52a2439cc188d5372a4fc095aaebfd38d.zip |
test/run_encoder: fix encoder_open() call
-rw-r--r-- | test/run_encoder.c | 3 |
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); |