diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-08-11 09:23:01 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-08-11 14:12:21 +0100 |
commit | 0a13066396cf25c357c268105667d8ea4cb5d3b4 (patch) | |
tree | c17b91d71d333e3d3ccbfe947056d78c98dd7d08 | |
parent | 62cc9643c3dd24e4e2b5c0f9348d9bd472d27441 (diff) |
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>
-rw-r--r-- | server/gstreamer-encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c index 18c10d17..18cc6a78 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; |