mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-12 09:06:43 +00:00
Catch exceptions in VideoThread
This commit is contained in:
parent
2042a66cf3
commit
de37ca8e2c
2 changed files with 37 additions and 29 deletions
|
@ -121,6 +121,7 @@
|
|||
Bug #5975: NIF controllers from sheath meshes are used
|
||||
Bug #5991: Activate should always be allowed for inventory items
|
||||
Bug #5995: NiUVController doesn't calculate the UV offset properly
|
||||
Bug #6007: Crash when ending cutscene is playing
|
||||
Bug #6016: Greeting interrupts Fargoth's sneak-walk
|
||||
Feature #390: 3rd person look "over the shoulder"
|
||||
Feature #832: OpenMW-CS: Handle deleted references
|
||||
|
|
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
7
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
|
@ -409,6 +409,8 @@ public:
|
|||
|
||||
pFrame = av_frame_alloc();
|
||||
|
||||
try
|
||||
{
|
||||
while(self->videoq.get(packet, self) >= 0)
|
||||
{
|
||||
if(packet->data == flush_pkt.data)
|
||||
|
@ -446,6 +448,11 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
std::cerr << "An error occurred playing the video: " << e.what () << std::endl;
|
||||
}
|
||||
|
||||
av_packet_unref(packet);
|
||||
|
||||
|
|
Loading…
Reference in a new issue