Catch exceptions in VideoThread

pull/593/head
Evil Eye 4 years ago
parent 2042a66cf3
commit de37ca8e2c

@ -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

@ -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…
Cancel
Save