Re: [PATCH 08/23] simplify release_item_after_push

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

 



Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>

On Mon, 2016-05-16 at 14:31 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/dcc.c | 17 +----------------
>  1 file changed, 1 insertion(+), 16 deletions(-)
> 
> diff --git a/server/dcc.c b/server/dcc.c
> index 286514c..20ba6ee 100644
> --- a/server/dcc.c
> +++ b/server/dcc.c
> @@ -1610,22 +1610,7 @@ int dcc_handle_migrate_data(DisplayChannelClient *dcc,
> uint32_t size, void *mess
>  
>  static void release_item_after_push(RedPipeItem *item)
>  {
> -    switch (item->type) {
> -    case RED_PIPE_ITEM_TYPE_DRAW:
> -    case RED_PIPE_ITEM_TYPE_IMAGE:
> -    case RED_PIPE_ITEM_TYPE_STREAM_CLIP:
> -    case RED_PIPE_ITEM_TYPE_MONITORS_CONFIG:
> -    case RED_PIPE_ITEM_TYPE_UPGRADE:
> -        red_pipe_item_unref(item);
> -        break;
> -    case RED_PIPE_ITEM_TYPE_GL_SCANOUT:
> -    case RED_PIPE_ITEM_TYPE_GL_DRAW:
> -    case RED_PIPE_ITEM_TYPE_VERB:
> -        free(item);
> -        break;
> -    default:
> -        spice_critical("invalid item type");
> -    }
> +    red_pipe_item_unref(item);
>  }
>  
>  // TODO: share code between before/after_push since most of the items need
> the same
_______________________________________________
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]