aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
Diffstat (limited to 'externals')
-rw-r--r--externals/grill/flext/changes.txt1
-rw-r--r--externals/grill/flext/source/flbuf.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/externals/grill/flext/changes.txt b/externals/grill/flext/changes.txt
index 791b1025..f5964072 100644
--- a/externals/grill/flext/changes.txt
+++ b/externals/grill/flext/changes.txt
@@ -22,6 +22,7 @@ Version history:
- uniform STL container for all kinds of attribute, method, class handling
- support for MinGW
- added flext_obj::CanvasArgs
+- fixed small problem with buffer->Valid() on startup
0.4.5:
- added some more SIMD functions
diff --git a/externals/grill/flext/source/flbuf.cpp b/externals/grill/flext/source/flbuf.cpp
index 46eb7f4f..6d2f651d 100644
--- a/externals/grill/flext/source/flbuf.cpp
+++ b/externals/grill/flext/source/flbuf.cpp
@@ -133,7 +133,7 @@ bool flext::buffer::Valid() const
#if FLEXT_SYS == FLEXT_SYS_PD
int frames1;
t_sample *data1;
- return garray_getfloatarray(arr, &frames1, &data1) != 0;
+ return arr && garray_getfloatarray(arr, &frames1, &data1) != 0;
#elif FLEXT_SYS == FLEXT_SYS_MAX
const _buffer *p = (const _buffer *)sym->s_thing;
return p && p->b_valid;