Skip to content

Commit e7a5ce8

Browse files
committed
don't crash if an audio player has not been created
1 parent 0d10413 commit e7a5ce8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/OpenCOVER/cover/coVRPluginSupport.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ void coVRPluginSupport::update()
619619
v(2, 0), v(2, 1), v(2, 2), v(2, 3),
620620
v(3, 0), v(3, 1), v(3, 2), v(3, 3));
621621
listener->update(frameDuration(), mat);
622-
player->update();
622+
if (player)
623+
player->update();
623624
}
624625

625626
coVRPlugin *coVRPluginSupport::addPlugin(const char *name)

0 commit comments

Comments
 (0)