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:
Seungha Yang 2019-02-18 09:58:19 +09:00
parent 2108c6228a
commit 790f193d63

View file

@ -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!