зеркало из https://github.com/mozilla/pjs.git
fix for #112970. timer problem with animated gif with frame larger than header screen size.
This fix should allow a graceful handling of error. pnunn
This commit is contained in:
Родитель
6f63db6d27
Коммит
43fe479e8f
|
@ -638,11 +638,10 @@ gif_delay_time_callback(void *closure)
|
|||
|
||||
XP_ASSERT(gs->state == gif_delay);
|
||||
|
||||
gs->delay_timeout = NULL;
|
||||
|
||||
if (gs->ic->state == IC_ABORT_PENDING)
|
||||
return;
|
||||
|
||||
|
||||
gs->delay_timeout = NULL;
|
||||
gs->delay_time = 0; /* Reset for next image */
|
||||
|
||||
if (gs->state == gif_delay) {
|
||||
|
@ -1492,12 +1491,14 @@ il_gif_write(il_container *ic, const uint8 *buf, int32 len)
|
|||
case gif_error:
|
||||
ILTRACE(2,("il:gif: reached error state"));
|
||||
ic->state=IC_ABORT_PENDING;
|
||||
|
||||
return MK_IMAGE_LOSSAGE;
|
||||
break;
|
||||
|
||||
default:
|
||||
ILTRACE(0,("il:gif: unknown state"));
|
||||
ic->state=IC_ABORT_PENDING;
|
||||
|
||||
XP_ASSERT(0);
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче