From 5bd81abdb113cbc17877d63ebdf8b903315b70c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 14 Jul 2020 12:11:57 +0100 Subject: [PATCH] buffer: fix meta sequence number fallback on rpi The global seqnum variable wasn't actually increased in the fallback code path, leading to all buffers getting a seqnum of 0. Which also made the unit test fail. This affects platforms/toolchains that don't have 64-bit atomic ops such as when compiling for armv7 rpi. Part-of: --- gst/gstbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index d0b6ee7137..62a4d3e9fe 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -192,7 +192,7 @@ gst_atomic_int64_inc (volatile gint64 * atomic) gint64 ret; G_LOCK (meta_seq); - ret = *atomic++; + ret = (*atomic)++; G_UNLOCK (meta_seq); return ret;