From baf265fd5b585efb3ed7e8c36f55694d9c10e02b Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 14 Feb 2020 07:31:30 +0100 Subject: [PATCH] obs-signal-handler: Fix possible crash --- source/obs/obs-signal-handler.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/obs/obs-signal-handler.hpp b/source/obs/obs-signal-handler.hpp index c7ebd4c2..599c08ef 100644 --- a/source/obs/obs-signal-handler.hpp +++ b/source/obs/obs-signal-handler.hpp @@ -47,8 +47,8 @@ namespace obs { static void handle_signal(void* ptr, calldata* cd) noexcept try { - auto p = reinterpret_cast>&>(ptr); - p.event(p._keepalive, cd); + auto p = reinterpret_cast>*>(ptr); + p->event(p->_keepalive, cd); } catch (...) { } @@ -75,8 +75,8 @@ namespace obs { static void handle_audio(void* ptr, obs_source_t*, const struct audio_data* audio_data, bool muted) noexcept try { - auto p = reinterpret_cast(ptr); - p.event(p._keepalive, audio_data, muted); + auto p = reinterpret_cast(ptr); + p->event(p->_keepalive, audio_data, muted); } catch (...) { }