From 33a61283f6264f55b1cdaecd92e069ea8420edaa Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 14 Apr 2018 10:33:19 +0300 Subject: [PATCH] Fix output panel crash if capture before recording was ticked. --- od-win32/win32_scaler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/od-win32/win32_scaler.cpp b/od-win32/win32_scaler.cpp index 099ac6eb..1bf87066 100644 --- a/od-win32/win32_scaler.cpp +++ b/od-win32/win32_scaler.cpp @@ -725,6 +725,8 @@ void freefilterbuffer(int monid, uae_u8 *buf) struct vidbuffer *vb = avidinfo->outbuffer; struct uae_filter *usedfilter = mon->usedfilter; + if (!vb) + return; if (usedfilter == NULL) { unlockscr3d(vb); } @@ -740,6 +742,8 @@ uae_u8 *getfilterbuffer(int monid, int *widthp, int *heightp, int *pitch, int *d *widthp = 0; *heightp = 0; *depth = amiga_depth; + if (!vb) + return NULL; if (usedfilter == NULL) { if (!lockscr3d(vb)) { return NULL; -- 2.47.3