diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/grabbers/me4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/grabbers/me4.c b/src/grabbers/me4.c index ba2c881..ceac483 100644 --- a/src/grabbers/me4.c +++ b/src/grabbers/me4.c @@ -196,6 +196,9 @@ static int uca_me4_callback(frameindex_t frame, struct fg_apc_data *apc) uint32_t uca_me4_register_callback(struct uca_grabber *grabber, uca_cam_grab_callback callback, void *meta_data, void *user) { + if (GET_MEM(grabber) == NULL) + return UCA_ERR_GRABBER | UCA_ERR_CALLBACK | UCA_ERR_NO_MEMORY; + if (grabber->callback == NULL) { grabber->callback = callback; |