comparison src/animate.c @ 155:6749f6639924

Fix bug for STAILQ that fail to remove a node. The previous one should be re-linked to next of removed one. But, it is linked to the removed one. Fix it!
author Thinker K.F. Li <thinker@branda.to>
date Wed, 01 Oct 2008 14:46:08 +0800
parents 9870b049b7f6
children c7e5b8779bb5
comparison
equal deleted inserted replaced
154:6ce68c1f7405 155:6749f6639924
288 word = progm->words + progm->first_playing; 288 word = progm->words + progm->first_playing;
289 if(MB_TIMEVAL_LATER(&word->abs_start, &next_tmo)) 289 if(MB_TIMEVAL_LATER(&word->abs_start, &next_tmo))
290 MB_TIMEVAL_CP(&next_tmo, &word->abs_start); 290 MB_TIMEVAL_CP(&next_tmo, &word->abs_start);
291 timer = mb_tman_timeout(progm->tman, &next_tmo, 291 timer = mb_tman_timeout(progm->tman, &next_tmo,
292 mb_progm_step, progm); 292 mb_progm_step, progm);
293 progm->cur_timer = timer;
293 } else { 294 } else {
294 /* Make program to complete. */ 295 /* Make program to complete. */
295 #ifndef UNITTEST 296 #ifndef UNITTEST
296 factory = rdman_get_ob_factory(progm->rdman); 297 factory = rdman_get_ob_factory(progm->rdman);
297 comp_evt.event.type = EVT_PROGM_COMPLETE; 298 comp_evt.event.type = EVT_PROGM_COMPLETE;