gstreamer: Peephole optimisation for SpiceFormatForGStreamer

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.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-08-11 09:23:01 +01:00
parent 62cc9643c3
commit 0a13066396

View File

@ -40,7 +40,7 @@
typedef struct {
SpiceBitmapFmt spice_format;
const char *format;
char format[8];
uint32_t bpp;
uint32_t depth;
uint32_t endianness;