Patchwork [v5,2/9] vga: stop after the first ppm_save

login
register
mail settings
Submitter Alon Levy
Date Feb. 22, 2012, 9:09 p.m.
Message ID <1329944981-28311-3-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/142533/
State New
Headers show

Comments

Alon Levy - Feb. 22, 2012, 9:09 p.m.
From: Gerd Hoffman <kraxel@redhat.com>

Tested-by: Alon Levy <alevy@redhat.com>
---
 hw/vga.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/vga.c b/hw/vga.c
index c1029db..a728f29 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2369,6 +2369,7 @@  static void vga_save_dpy_update(DisplayState *ds,
 {
     if (screen_dump_filename) {
         ppm_save(screen_dump_filename, ds->surface);
+        screen_dump_filename = NULL;
     }
 }