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:
henrike@webrtc.org 2011-12-14 17:27:58 +00:00
parent 780a07a843
commit 7cdcde3460
2 changed files with 6 additions and 6 deletions

View File

@ -39,8 +39,8 @@ void MediaFile::DestroyMediaFile(MediaFile* module)
MediaFileImpl::MediaFileImpl(const WebRtc_Word32 id) MediaFileImpl::MediaFileImpl(const WebRtc_Word32 id)
: _id(id), : _id(id),
_crit(*CriticalSectionWrapper::CreateCriticalSection()), _crit(CriticalSectionWrapper::CreateCriticalSection()),
_callbackCrit(*CriticalSectionWrapper::CreateCriticalSection()), _callbackCrit(CriticalSectionWrapper::CreateCriticalSection()),
_ptrFileUtilityObj(NULL), _ptrFileUtilityObj(NULL),
codec_info_(), codec_info_(),
_ptrInStream(NULL), _ptrInStream(NULL),
@ -90,8 +90,8 @@ MediaFileImpl::~MediaFileImpl()
} }
} }
delete &_crit; delete _crit;
delete &_callbackCrit; delete _callbackCrit;
} }
WebRtc_Word32 MediaFileImpl::Version(WebRtc_Word8* version, WebRtc_Word32 MediaFileImpl::Version(WebRtc_Word8* version,

View File

@ -223,8 +223,8 @@ private:
void HandlePlayCallbacks(WebRtc_Word32 bytesRead); void HandlePlayCallbacks(WebRtc_Word32 bytesRead);
WebRtc_Word32 _id; WebRtc_Word32 _id;
CriticalSectionWrapper& _crit; CriticalSectionWrapper* _crit;
CriticalSectionWrapper& _callbackCrit; CriticalSectionWrapper* _callbackCrit;
ModuleFileUtility* _ptrFileUtilityObj; ModuleFileUtility* _ptrFileUtilityObj;
CodecInst codec_info_; CodecInst codec_info_;