Re: [PATCH spice-server 1/3] test-gst: Remove useless check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 11, 2017 at 09:12:16AM +0100, Frediano Ziglio wrote:
> encoder_name is never NULL as already initialized with "mjpeg" value.

Note that this is going to be changed in patch 3/3

Christophe

> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/tests/test-gst.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/server/tests/test-gst.c b/server/tests/test-gst.c
> index d4ebaacf6..40f738d78 100644
> --- a/server/tests/test-gst.c
> +++ b/server/tests/test-gst.c
> @@ -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);
> -- 
> 2.13.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]