[Spice-devel] [PATCH v6 01/26] server: Remove an unnecessary cast in encode_frame()

Christophe Fergeau cfergeau at redhat.com
Wed Oct 21 05:46:29 PDT 2015


ACK.

On Wed, Oct 14, 2015 at 05:30:35PM +0200, Francois Gouget wrote:
> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
> ---
>  server/red_worker.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/server/red_worker.c b/server/red_worker.c
> index babb597..616be72 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -8512,8 +8512,7 @@ static int encode_frame(DisplayChannelClient *dcc, const SpiceRect *src,
>      const unsigned int stream_width = src->right - src->left;
>  
>      for (i = 0; i < stream_height; i++) {
> -        uint8_t *src_line =
> -            (uint8_t *)red_get_image_line(chunks, &offset, &chunk, image_stride);
> +        uint8_t *src_line = red_get_image_line(chunks, &offset, &chunk, image_stride);
>  
>          if (!src_line) {
>              return FALSE;
> -- 
> 2.6.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151021/0f3eaa68/attachment.sig>


More information about the Spice-devel mailing list