// Size returns the pixel dimensions of a video. // vidnum is the number of the target video. Most commonly starts at 0. func (this *Player) Size(vidnum uint) (width, height uint, err error) { if this.ptr == nil { return 0, 0, syscall.EINVAL } var w, h C.uint C.libvlc_video_get_size(this.ptr, C.uint(vidnum), &w, &h) return uint(w), uint(h), nil }
// Size returns the pixel dimensions of a video. // vidnum is the number of the target video. Most commonly starts at 0. func (this *Player) Size(vidnum uint) (width, height uint, err error) { if this.ptr == nil { return 0, 0, &VLCError{"Player is nil"} } var w, h C.uint C.libvlc_video_get_size(this.ptr, C.uint(vidnum), &w, &h) return uint(w), uint(h), nil }