diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-07-14 14:11:57 +0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-09-24 20:50:01 +0300 |
commit | 0a6f93df2d5cdf4d260aaac851c5d6b220a03c78 (patch) | |
tree | 50f36ea61579f3d1fa9f5bd16c7d7243ba75bb9f | |
parent | bc566d2859c36295c8057c01873066b67a5a3edb (diff) |
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/645>
-rw-r--r-- | gst/gstbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 19a70b417b..00978580c2 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; |