Re: [spice v10 07/27] replay: Add an option to change video codec

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

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Tue, Mar 01, 2016 at 04:52:15PM +0100, Pavel Grunt wrote:
> Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
> ---
>  server/tests/replay.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/server/tests/replay.c b/server/tests/replay.c
> index f3b670f..5bbca5e 100644
> --- a/server/tests/replay.c
> +++ b/server/tests/replay.c
> @@ -284,7 +284,7 @@ int main(int argc, char **argv)
>  {
>      GError *error = NULL;
>      GOptionContext *context = NULL;
> -    gchar *client = NULL, **file = NULL;
> +    gchar *client = NULL, *codecs = NULL, **file = NULL;
>      gint port = 5000, compression = SPICE_IMAGE_COMPRESSION_AUTO_GLZ;
>      gint streaming = SPICE_STREAM_VIDEO_FILTER;
>      gboolean wait = FALSE;
> @@ -294,6 +294,7 @@ int main(int argc, char **argv)
>          { "client", 'c', 0, G_OPTION_ARG_STRING, &client, "Client", "CMD" },
>          { "compression", 'C', 0, G_OPTION_ARG_INT, &compression, "Compression (default 2)", "INT" },
>          { "streaming", 'S', 0, G_OPTION_ARG_INT, &streaming, "Streaming (default 3)", "INT" },
> +        { "video-codecs", 'v', 0, G_OPTION_ARG_STRING, &codecs, "Video codecs", "STRING" },
>          { "port", 'p', 0, G_OPTION_ARG_INT, &port, "Server port (default 5000)", "PORT" },
>          { "wait", 'w', 0, G_OPTION_ARG_NONE, &wait, "Wait for client", NULL },
>          { "slow", 's', 0, G_OPTION_ARG_INT, &slow, "Slow down replay. Delays USEC microseconds before each command", "USEC" },
> @@ -378,6 +379,14 @@ int main(int argc, char **argv)
>      server = spice_server_new();
>      spice_server_set_image_compression(server, compression);
>      spice_server_set_streaming_video(server, streaming);
> +
> +    if (codecs != NULL) {
> +        if (spice_server_set_video_codecs(server, codecs) != 0) {
> +            g_warning("could not set codecs: %s", codecs);
> +        }
> +        g_free(codecs);
> +    }
> +
>      spice_server_set_port(server, port);
>      spice_server_set_noauth(server);
>  
> -- 
> 2.7.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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]