diff options
author | N.N. <sevyves@users.sourceforge.net> | 2009-10-01 12:45:57 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2009-10-01 12:45:57 +0000 |
commit | 849207f2418f17b57c12ff891bad076ac170c738 (patch) | |
tree | b2e6ca498da6a7121f2502a3a23126b5bf7f3bfc | |
parent | 69ebbc52c5a3e28a2ce91648a249054bb1b42fac (diff) |
fixed crash when changing number of buffers
svn path=/trunk/externals/pix_opencv/; revision=12504
-rw-r--r-- | pix_opencv_motempl.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pix_opencv_motempl.cc b/pix_opencv_motempl.cc index 545b437..208702a 100644 --- a/pix_opencv_motempl.cc +++ b/pix_opencv_motempl.cc @@ -693,8 +693,11 @@ void pix_opencv_motempl :: floatmin_size(float min_size) } void pix_opencv_motempl :: floatframe_buffer_num(float frame_buffer_num) { - if (frame_buffer_num>=1) this->frame_buffer_num = (int)frame_buffer_num; - this->buf = NULL; + if (frame_buffer_num>=3) + { + this->frame_buffer_num = (int)frame_buffer_num; + this->buf = NULL; + } } void pix_opencv_motempl :: floatmax_time_delta(float max_time_delta) { |