[PATCH spice-server 8/8] RFC replay: Bump replay version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The changes to support audio make the format not compatible as
older version are not able to skip the new data.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/red-record-qxl.c | 2 +-
 server/red-replay-qxl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red-record-qxl.c b/server/red-record-qxl.c
index ada1e37..5d521db 100644
--- a/server/red-record-qxl.c
+++ b/server/red-record-qxl.c
@@ -886,7 +886,7 @@ static void child_output_setup(gpointer user_data)
 
 RedRecord *red_record_new(const char *filename)
 {
-    static const char header[] = "SPICE_REPLAY 1\n";
+    static const char header[] = "SPICE_REPLAY 2\n";
 
     const char *filter;
     FILE *f;
diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c
index 47ec066..dce2607 100644
--- a/server/red-replay-qxl.c
+++ b/server/red-replay-qxl.c
@@ -1521,7 +1521,7 @@ SpiceReplay *spice_replay_new(FILE *file, int nsurfaces)
     spice_return_val_if_fail(file != NULL, NULL);
 
     if (fscanf(file, "SPICE_REPLAY %u\n", &version) == 1) {
-        if (version != 1) {
+        if (version < 1 || version > 2) {
             spice_warning("Replay file version unsupported");
             return NULL;
         }
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]