test-gst: Remove useless check

encoder_name is never NULL as already initialized with "mjpeg" value.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-09-01 07:04:16 +01:00
parent 2e06a6e940
commit f35843ee6f

View File

@ -368,11 +368,6 @@ int main(int argc, char *argv[])
exit(1);
}
if (!encoder_name) {
g_printerr("Encoder name option missing\n");
exit(1);
}
const EncoderInfo *encoder = get_encoder_info(encoder_name);
if (!encoder) {
g_printerr("Encoder name unsupported: %s\n", encoder_name);