projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2108c62
)
buffer: Don't miss return value on Windows build
author
Seungha Yang
<seungha.yang@navercorp.com>
Mon, 18 Feb 2019 00:58:19 +0000
(09:58 +0900)
committer
Seungha 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
patch
|
blob
|
history
diff --git
a/gst/gstbuffer.c
b/gst/gstbuffer.c
index
1e79acf
..
b68ded3
100644
(file)
--- a/
gst/gstbuffer.c
+++ b/
gst/gstbuffer.c
@@
-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!