Logo Search packages:      
Sourcecode: vcdimager version File versions

vcdinfo_video_segment_type_t vcdinfo_get_video_type ( const vcdinfo_obj_t *  obj,
segnum_t  seg_num 
)

Get the kind of video stream segment of segment seg_num in obj.

Returns:
VCDINFO_FILES_VIDEO_INVALID is returned if on error or obj is null. Otherwise the enumeration type.
Note first seg_num is 0!

Returns:
VCDINFO_FILES_VIDEO_INVALID is returned if on error or obj is null. Otherwise the enumeration type.
Note first seg_num is 0!

Definition at line 1445 of file info.c.

References vcdinfo_get_video_type().

Referenced by vcdinfo_get_video_type(), and vcdinfo_video_type2str().

{
  const InfoVcd_t *info;
  if (obj == NULL)  return VCDINFO_FILES_VIDEO_INVALID;
  info = &obj->info;
  if (info == NULL) return VCDINFO_FILES_VIDEO_INVALID;
  return info->spi_contents[seg_num].video_type;
}


Generated by  Doxygen 1.6.0   Back to index