Removed usage of the deprecated critical section constructor in media_file.
Review URL: http://webrtc-codereview.appspot.com/321004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1187 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
780a07a843
commit
7cdcde3460
@ -39,8 +39,8 @@ void MediaFile::DestroyMediaFile(MediaFile* module)
|
||||
|
||||
MediaFileImpl::MediaFileImpl(const WebRtc_Word32 id)
|
||||
: _id(id),
|
||||
_crit(*CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_callbackCrit(*CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_crit(CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_callbackCrit(CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_ptrFileUtilityObj(NULL),
|
||||
codec_info_(),
|
||||
_ptrInStream(NULL),
|
||||
@ -90,8 +90,8 @@ MediaFileImpl::~MediaFileImpl()
|
||||
}
|
||||
}
|
||||
|
||||
delete &_crit;
|
||||
delete &_callbackCrit;
|
||||
delete _crit;
|
||||
delete _callbackCrit;
|
||||
}
|
||||
|
||||
WebRtc_Word32 MediaFileImpl::Version(WebRtc_Word8* version,
|
||||
|
@ -223,8 +223,8 @@ private:
|
||||
void HandlePlayCallbacks(WebRtc_Word32 bytesRead);
|
||||
|
||||
WebRtc_Word32 _id;
|
||||
CriticalSectionWrapper& _crit;
|
||||
CriticalSectionWrapper& _callbackCrit;
|
||||
CriticalSectionWrapper* _crit;
|
||||
CriticalSectionWrapper* _callbackCrit;
|
||||
|
||||
ModuleFileUtility* _ptrFileUtilityObj;
|
||||
CodecInst codec_info_;
|
||||
|
Loading…
Reference in New Issue
Block a user