mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
removed redundant get on smart pointer; made pictq_[r|w]index unsigned longs to be type compatible with std::array pictq.size(); fixes assert issue
This commit is contained in:
parent
bae8713998
commit
f0db576611
2 changed files with 3 additions and 2 deletions
2
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
2
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
|
@ -676,7 +676,7 @@ int VideoState::stream_open(int stream_index, AVFormatContext *pFormatCtx)
|
|||
}
|
||||
|
||||
mAudioDecoder = mAudioFactory->createDecoder(this);
|
||||
if (!mAudioDecoder.get())
|
||||
if (!mAudioDecoder)
|
||||
{
|
||||
std::cerr << "Failed to create audio decoder, can not play audio stream" << std::endl;
|
||||
avcodec_free_context(&this->audio_ctx);
|
||||
|
|
3
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
3
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
|
@ -184,7 +184,8 @@ struct VideoState {
|
|||
SwsContext* sws_context;
|
||||
int sws_context_w, sws_context_h;
|
||||
std::array<VideoPicture, VIDEO_PICTURE_QUEUE_SIZE+1> pictq; // allocate one extra to make sure we do not overwrite the osg::Image currently set on the texture
|
||||
int pictq_size, pictq_rindex, pictq_windex;
|
||||
int pictq_size;
|
||||
unsigned long pictq_rindex, pictq_windex;
|
||||
std::mutex pictq_mutex;
|
||||
std::condition_variable pictq_cond;
|
||||
|
||||
|
|
Loading…
Reference in a new issue