aboutsummaryrefslogtreecommitdiff
path: root/pdp_opencv_motempl.c
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-10-01 12:51:18 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-10-01 12:51:18 +0000
commitf7d4f43f4189ef0bbff13c81cb93bd923b9a6550 (patch)
tree9423a85c6307f7c4a8e7b0794d7983b8f6b91019 /pdp_opencv_motempl.c
parent1c9baecf27e97024412180befa66b8b24db849c4 (diff)
fixed crash when changing number of buffers
svn path=/trunk/externals/pdp_opencv/; revision=12505
Diffstat (limited to 'pdp_opencv_motempl.c')
-rw-r--r--pdp_opencv_motempl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pdp_opencv_motempl.c b/pdp_opencv_motempl.c
index 6f21efc..53808f9 100644
--- a/pdp_opencv_motempl.c
+++ b/pdp_opencv_motempl.c
@@ -316,8 +316,11 @@ static void pdp_opencv_motempl_min_time_delta(t_pdp_opencv_motempl *x, t_floatar
static void pdp_opencv_motempl_frame_buffer_num(t_pdp_opencv_motempl *x, t_floatarg f)
{
- if (f>=3) x->frame_buffer_num = (int)f;
- x->buf = NULL;
+ if (f>=3)
+ {
+ x->frame_buffer_num = (int)f;
+ x->buf = NULL;
+ }
}
static void pdp_opencv_motempl_sendpacket(t_pdp_opencv_motempl *x)