if ((!iRetcode) && (pData->bDisplaying))
if (!iRetcode)
READ_CHUNK (read_seek){#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_SEEK, MNG_LC_START)#endif                                       /* sequence checks */  if ((!pData->bHasMHDR) || (!pData->bHasSAVE))    MNG_ERROR (pData, MNG_SEQUENCEERROR)#ifdef MNG_INCLUDE_JNG  if ((pData->bHasIHDR) || (pData->bHasBASI) || (pData->bHasDHDR) || (pData->bHasJHDR))#else  if ((pData->bHasIHDR) || (pData->bHasBASI) || (pData->bHasDHDR))#endif    MNG_ERROR (pData, MNG_SEQUENCEERROR)  if (pData->fProcessseek)             /* inform the app ? */  {    mng_bool  bOke;    mng_pchar zName;    MNG_ALLOC (pData, zName, iRawlen + 1)    if (iRawlen)      MNG_COPY (zName, pRawdata, iRawlen)    bOke = pData->fProcessseek ((mng_handle)pData, zName);    MNG_FREEX (pData, zName, iRawlen + 1)    if (!bOke)      MNG_ERROR (pData, MNG_APPMISCERROR)  }#ifdef MNG_SUPPORT_DISPLAY  {    mng_retcode iRetcode;    /* TODO: something with the name ??? */                                       /* create a SEEK animation object */    iRetcode = create_ani_seek (pData);                                       /* process it */    if ((!iRetcode) && (pData->bDisplaying))      iRetcode = process_display_seek (pData);    if (iRetcode)                      /* on error bail out */      return iRetcode;  }#endif /* MNG_SUPPORT_DISPLAY */#ifdef MNG_STORE_CHUNKS  if (pData->bStorechunks)  {                                    /* initialize storage */    mng_retcode iRetcode = ((mng_chunk_headerp)pHeader)->fCreate (pData, pHeader, ppChunk);    if (iRetcode)                      /* on error bail out */      return iRetcode;                                       /* store the fields */    ((mng_seekp)*ppChunk)->iNamesize = iRawlen;    if (iRawlen)    {      MNG_ALLOC (pData, ((mng_seekp)*ppChunk)->zName, iRawlen+1)      MNG_COPY (((mng_seekp)*ppChunk)->zName, pRawdata, iRawlen)    }  }#endif /* MNG_STORE_CHUNKS */#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_SEEK, MNG_LC_END)#endif  return MNG_NOERROR;                  /* done */}