Setting framelog sample size does not work.

Setting the frame log size only resized the time line graph, not the normal
frame log groups.  Added code to change the size of the normal frame log
groups in addition to the time line.

refs #177
This commit is contained in:
Alex Lin 2016-02-04 16:13:05 -06:00
parent 030f44132c
commit 6461b50d7d

View File

@ -469,6 +469,12 @@ int Trick::FrameLog::set_max_samples(int num) {
timeline[ii] = (Trick::timeline_t *)realloc( timeline[ii], tl_max_samples*sizeof(Trick::timeline_t));
timeline_other[ii] = (Trick::timeline_t *)realloc( timeline_other[ii], tl_max_samples*sizeof(Trick::timeline_t));
}
std::vector< Trick::FrameDataRecordGroup *>::iterator it ;
for ( it = drg_users.begin() ; it != drg_users.end() ; it++ ) {
(*it)->set_max_buffer_size(num) ;
}
drg_trick->set_max_buffer_size(num) ;
drg_frame->set_max_buffer_size(num) ;
}
return(0) ;
}