Logo Search packages:      
Sourcecode: vcdimager version File versions

track_t vcdinfo_get_track ( const vcdinfo_obj_t *  obj,
const unsigned int  entry_num 
)

Return the track number for entry n in obj.

In contrast to libcdio we start numbering at 0 which is the ISO9660 and metadata information for the Video CD. Thus track 1 is the first track the first complete MPEG track generally.

Return the track number for entry n in obj.

In contrast to libcdio we start numbering at 0 which is the ISO9660 and metadata information for the Video CD. Thus track 1 is the first track the first complete MPEG track generally.

Definition at line 1249 of file info.c.

References vcdinf_get_num_entries(), vcdinf_get_track(), vcdinfo_get_track(), and VCDINFO_INVALID_TRACK.

Referenced by vcdinfo_get_entry_sect_count(), and vcdinfo_get_track().

{
  const EntriesVcd_t *entries = &obj->entries;
  const unsigned int entry_count = vcdinf_get_num_entries(entries);
  /* Note entry_num is 0 origin. */
  return entry_num < entry_count ?
    vcdinf_get_track(entries, entry_num)-1: VCDINFO_INVALID_TRACK;
}


Generated by  Doxygen 1.6.0   Back to index