mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +00:00
buffer: Don't miss return value on Windows build
... and use InterlockedExchangeAdd64 for the 64bit value. InterlockedExchangeAdd is 32bit version.
This commit is contained in:
parent
2108c6228a
commit
790f193d63
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ gst_atomic_int64_inc (volatile gint64 * atomic)
|
|||
static inline gint64
|
||||
gst_atomic_int64_inc (volatile gint64 * atomic)
|
||||
{
|
||||
InterlockedExchangeAdd (atomic, 1);
|
||||
return InterlockedExchangeAdd64 (atomic, 1);
|
||||
}
|
||||
#else
|
||||
#warning No 64-bit atomic int defined for this platform/toolchain!
|
||||
|
|
Loading…
Reference in a new issue