buffer: Don't miss return value on Windows build
authorSeungha Yang <seungha.yang@navercorp.com>
Mon, 18 Feb 2019 00:58:19 +0000 (09:58 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Mon, 18 Feb 2019 01:21:18 +0000 (10:21 +0900)
... and use InterlockedExchangeAdd64 for the 64bit value.
InterlockedExchangeAdd is 32bit version.

gst/gstbuffer.c

index 1e79acf..b68ded3 100644 (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!