Logo Search packages:      
Sourcecode: vcdimager version File versions

unsigned int vcdinfo_get_num_tracks ( const vcdinfo_obj_t *  obj  ) 

Return the highest track number in the current medium.

Because we track start numbering at 0 (which is the ISO 9660 track containing Video CD naviagion and disk information), this is one less than the number of tracks.

If there are no tracks, we return -1.

Return the highest track number in the current medium.

Because we track start numbering at 0 (which is the ISO 9660 track containing Video CD naviagion and disk information), this is one less than the number of tracks.

If there are no tracks, we return -1.

Definition at line 1287 of file info.c.

References vcdinfo_get_num_tracks().

Referenced by vcdinfo_get_num_tracks().

{
  if (obj == NULL || obj->img == NULL) return 0;

  return cdio_get_num_tracks(obj->img)-1;
}


Generated by  Doxygen 1.6.0   Back to index