From: Toni Wilen Date: Sat, 14 Apr 2018 07:33:19 +0000 (+0300) Subject: Fix output panel crash if capture before recording was ticked. X-Git-Tag: 4000~124 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=33a61283f6264f55b1cdaecd92e069ea8420edaa;p=francis%2Fwinuae.git Fix output panel crash if capture before recording was ticked. --- 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;