Logo Search packages:      
Sourcecode: vcdimager version File versions

unsigned int vcdinfo_get_seg_audio_type ( const vcdinfo_obj_t *  obj,
segnum_t  seg_num 
)

Return the audio type for a given segment. VCDINFO_INVALID_AUDIO_TYPE is returned on error.

Return the audio type for a given segment. VCDINFO_INVALID_AUDIO_TYPE is returned on error.

Definition at line 1147 of file info.c.

References vcdinfo_get_num_segments(), vcdinfo_get_seg_audio_type(), and VCDINFO_INVALID_AUDIO_TYPE.

Referenced by vcdinfo_get_seg_audio_type().

{
  if ( NULL == obj || NULL == &obj->info 
       || seg_num >= vcdinfo_get_num_segments(obj) )
    return VCDINFO_INVALID_AUDIO_TYPE;
  return(obj->info.spi_contents[seg_num].audio_type);
}


Generated by  Doxygen 1.6.0   Back to index