mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
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/565>
This commit is contained in:
parent
348fe27c7a
commit
5bd81abdb1
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ gst_atomic_int64_inc (volatile gint64 * atomic)
|
||||||
gint64 ret;
|
gint64 ret;
|
||||||
|
|
||||||
G_LOCK (meta_seq);
|
G_LOCK (meta_seq);
|
||||||
ret = *atomic++;
|
ret = (*atomic)++;
|
||||||
G_UNLOCK (meta_seq);
|
G_UNLOCK (meta_seq);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue