Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion codec/decoder/core/src/wels_decoder_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ int SemWait (SWelsDecSemphore* s, int32_t timeout) {
}

void SemRelease (SWelsDecSemphore* s, long* prevcount) {
ReleaseSemaphore (s->h, 1, prevcount);
LONG _prevcount;

ReleaseSemaphore (s->h, 1, &_prevcount);
*prevcount = _prevcount;
}

void SemDestroy (SWelsDecSemphore* s) {
Expand Down
2 changes: 1 addition & 1 deletion codec/decoder/plus/src/welsDecoderExt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace WelsDec {
***************************************************************************/
DECLARE_PROCTHREAD (pThrProcInit, p) {
SWelsDecThreadInfo* sThreadInfo = (SWelsDecThreadInfo*)p;
#if defined(WIN32)
#if defined(WIN32) && !defined(__CYGWIN__)
_alloca (WELS_DEC_MAX_THREAD_STACK_SIZE * (sThreadInfo->uiThrNum + 1));
#endif
return sThreadInfo->pThrProcMain (p);
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ if ['linux', 'freebsd', 'android', 'ios', 'darwin'].contains(system)
if ['ios', 'darwin', 'android'].contains(system)
cpp_lib = '-lc++'
endif
elif system == 'windows'
elif ['windows', 'cygwin'].contains(system)
if cpu_family == 'x86'
asm_format = 'win32'
asm_args += ['-DPREFIX', '-DX86_32']
Expand Down