test/run_encoder: fix encoder_open() call
This commit is contained in:
parent
f672e4016f
commit
1ddd9dd52a
@ -99,8 +99,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = encoder_open(encoder, &audio_format, &error);
|
if (!encoder_open(encoder, &audio_format, &error)) {
|
||||||
if (encoder == NULL) {
|
|
||||||
g_printerr("Failed to open encoder: %s\n",
|
g_printerr("Failed to open encoder: %s\n",
|
||||||
error->message);
|
error->message);
|
||||||
g_error_free(error);
|
g_error_free(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user