Hi,
I am interested in video support in sipXtapi, so I checked out
sipXtapi-media-update from branches...
While building VideoSupport project I am getting:
..\VideoCapture.cpp(501) : error C2039: 'Unlock' : is not a member of
'CAutoLock'
..\VideoCapture.cpp(506) : error C2039: 'Lock' : is not a member of
'CAutoLock'
I am guessing strange that use of CAutoLock class:
lock.Unlock();
// join the thread
DWORD res = ::WaitForSingleObject(eventThread_, INFINITE);
assert(WAIT_OBJECT_0 == res);
lock.Lock();
::CloseHandle(eventThread_);
eventThread_ = NULL;
What about something like this?
if (NULL != eventThread_)
{
// join the thread
DWORD res = ::WaitForSingleObject(eventThread_, INFINITE);
assert(WAIT_OBJECT_0 == res);
CCritSec csVideoLock;
CAutoLock cObjectLock(&csVideoLock);
::CloseHandle(eventThread_);
eventThread_ = NULL;
} // Lock goes out of scopeā¦.
Thank you
Paulo
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/