[Spice-devel] [PATCH v4 03/19] Change dcc_encoders_init to take ImageEncoders instead of DisplayChannelClient
Jonathon Jongsma
jjongsma at redhat.com
Tue Jun 14 14:05:36 UTC 2016
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Tue, 2016-06-14 at 10:32 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/dcc-encoders.c | 4 +---
> server/dcc-encoders.h | 2 +-
> server/dcc.c | 2 +-
> 3 files changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/server/dcc-encoders.c b/server/dcc-encoders.c
> index c03409c..7497029 100644
> --- a/server/dcc-encoders.c
> +++ b/server/dcc-encoders.c
> @@ -398,10 +398,8 @@ static void image_encoders_init_zlib(ImageEncoders *enc)
> }
> }
>
> -void dcc_encoders_init(DisplayChannelClient *dcc, ImageEncoderSharedData
> *shared_data)
> +void image_encoders_init(ImageEncoders *enc, ImageEncoderSharedData
> *shared_data)
> {
> - ImageEncoders *enc = &dcc->encoders;
> -
> spice_assert(shared_data);
> enc->shared_data = shared_data;
>
> diff --git a/server/dcc-encoders.h b/server/dcc-encoders.h
> index 596429c..2b4d556 100644
> --- a/server/dcc-encoders.h
> +++ b/server/dcc-encoders.h
> @@ -41,7 +41,7 @@ void image_encoder_shared_init(ImageEncoderSharedData
> *shared_data);
> void image_encoder_shared_stat_reset(ImageEncoderSharedData *shared_data);
> void image_encoder_shared_stat_print(const ImageEncoderSharedData
> *shared_data);
>
> -void dcc_encoders_init(DisplayChannelClient *dcc, ImageEncoderSharedData
> *shared_data);
> +void image_encoders_init(ImageEncoders *enc, ImageEncoderSharedData
> *shared_data);
> void image_encoders_free(ImageEncoders *enc);
> void dcc_free_glz_drawable (DisplayChannelC
> lient *dcc,
> RedGlzDrawable
> *drawable);
> diff --git a/server/dcc.c b/server/dcc.c
> index d73b742..1cc85b5 100644
> --- a/server/dcc.c
> +++ b/server/dcc.c
> @@ -396,7 +396,7 @@ DisplayChannelClient *dcc_new(DisplayChannel *display,
> ring_init(&dcc->glz_drawables_inst_to_free);
> pthread_mutex_init(&dcc->glz_drawables_inst_to_free_lock, NULL);
>
> - dcc_encoders_init(dcc, &display->encoder_globals);
> + image_encoders_init(&dcc->encoders, &display->encoder_globals);
>
> return dcc;
> }
More information about the Spice-devel
mailing list