Skip to content

Commit a1ae590

Browse files
committed
WIN32: ReleaseSemaphore() needs LONG rather than long.
1 parent df8f67e commit a1ae590

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

codec/decoder/core/src/wels_decoder_thread.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ int SemWait (SWelsDecSemphore* s, int32_t timeout) {
115115
}
116116

117117
void SemRelease (SWelsDecSemphore* s, long* prevcount) {
118-
ReleaseSemaphore (s->h, 1, prevcount);
118+
LONG _prevcount;
119+
120+
ReleaseSemaphore (s->h, 1, &_prevcount);
121+
*prevcount = _prevcount;
119122
}
120123

121124
void SemDestroy (SWelsDecSemphore* s) {

0 commit comments

Comments
 (0)