diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-27 14:53:07 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-27 14:53:07 +0000 |
commit | 84327a4b264040a6ad5bb1e202620dc279fe7871 (patch) | |
tree | 1ef5f48c92aa287f2eb2bf8a50a1dabf611f98d4 /mediaplugin/src/mediaplugins/ffmpeg | |
parent | c2f78e1e445c4d29a24a09a4af5cb0f6db12ecfb (diff) | |
download | usdx-84327a4b264040a6ad5bb1e202620dc279fe7871.tar.gz usdx-84327a4b264040a6ad5bb1e202620dc279fe7871.tar.xz usdx-84327a4b264040a6ad5bb1e202620dc279fe7871.zip |
fix a few conflicts with <windows.h>:
- prefix log-constants with LOG_
- remove already defined WAIT_TIMEOUT
- use more portable _WIN32 instead of __WIN32__
- define <stdint.h> types for MSVC
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2755 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'mediaplugin/src/mediaplugins/ffmpeg')
-rw-r--r-- | mediaplugin/src/mediaplugins/ffmpeg/ffmpeg_core.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mediaplugin/src/mediaplugins/ffmpeg/ffmpeg_core.cpp b/mediaplugin/src/mediaplugins/ffmpeg/ffmpeg_core.cpp index 13aae4a6..d33af650 100644 --- a/mediaplugin/src/mediaplugins/ffmpeg/ffmpeg_core.cpp +++ b/mediaplugin/src/mediaplugins/ffmpeg/ffmpeg_core.cpp @@ -359,8 +359,6 @@ void* PacketQueue::getStatusInfo(AVPacket *packet) { } int PacketQueue::get(AVPacket *packet, bool blocking) { - const int WAIT_TIMEOUT = 10; // timeout in ms - { Mutex::RegionLock lock(_mutex); while (true) { @@ -384,7 +382,7 @@ int PacketQueue::get(AVPacket *packet, bool blocking) { } else { // block until a new package arrives, // but do not wait till infinity to avoid deadlocks - if (_condition.waitTimeout(_mutex, WAIT_TIMEOUT) == MUTEX_TIMEDOUT) { + if (_condition.waitTimeout(_mutex, 10) == MUTEX_TIMEDOUT) { return 0; } } |