Skip to content

Commit

Permalink
Merge branch 'rtAudio_thread_fix' into test_edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 25, 2023
2 parents 51e2679 + a041651 commit 6ec1d51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/tlTimeline/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ namespace tl
}
catch (const std::exception& e)
{
std::stringstream ss;
ss << "Cannot open create RtAudio instance: " << e.what();
context->log("tl::timeline::Player", ss.str(), log::Type::Error);
if (auto context = getContext().lock())
{
std::stringstream ss;
ss << "Cannot open create RtAudio instance: " << e.what();
context->log("tl::timeline::Player", ss.str(), log::Type::Error);
}
}
if (!p.thread.rtAudio)
{
Expand Down

0 comments on commit 6ec1d51

Please sign in to comment.