Commit 790f193d authored by Seungha Yang's avatar Seungha Yang

buffer: Don't miss return value on Windows build

... and use InterlockedExchangeAdd64 for the 64bit value.
InterlockedExchangeAdd is 32bit version.
parent 2108c622
......@@ -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!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment