[Spice-devel] [PATCH 5/7] gstreamer: Peephole optimisation for SpiceFormatForGStreamer

Pavel Grunt pgrunt at redhat.com
Thu Aug 11 12:12:59 UTC 2016


On Thu, 2016-08-11 at 09:50 +0100, Frediano Ziglio wrote:
> Reduce structure length using static allocated string inside the
> structure.
> This will also avoid using .data.rel.ro section and relocations
> reducing even more library size.
ok
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
>  server/gstreamer-encoder.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c
> index 78d4f74..1221612 100644
> --- a/server/gstreamer-encoder.c
> +++ b/server/gstreamer-encoder.c
> @@ -40,7 +40,7 @@
>  
>  typedef struct {
>      SpiceBitmapFmt spice_format;
> -    const char *format;
> +    char format[8];
>      uint32_t bpp;
>      uint32_t depth;
>      uint32_t endianness;


More information about the Spice-devel mailing list