Changeset 3162

Show
Ignore:
Timestamp:
2007-07-18 22:11:15 (1 year ago)
Author:
shans
Message:

Continue on even if end-time can't be determined (no eos packet?). This
avoids leaving initialisation with ogg stream seeked to end of file.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libannodex/trunk/src/importers/anx_import_ogg.c

    r2702 r3162  
    954954      fprintf (aod->df, "anxogg_setup: oggz_seek_units end FAIL\n"); 
    955955#endif 
    956       return -1; 
    957     } 
    958     end_time = ((double)units_at) / 1000.0; 
     956      //return -1; 
     957      end_time = -1; 
     958    } else { 
     959      end_time = ((double)units_at) / 1000.0; 
     960    } 
    959961  } else { 
    960962    units = (ogg_int64_t)(SUBSECONDS * end_time); 
     
    980982 
    981983  aod->anx_source->byte_length = end_offset - start_offset; 
    982   aod->anx_source->duration = end_time - start_time; 
     984  if (end_time != -1) { 
     985    aod->anx_source->duration = end_time - start_time; 
     986  } 
    983987 
    984988#ifdef DEBUG