// State returns the current movie state. func (this *Player) State() (MediaState, error) { if this.ptr == nil { return 0, syscall.EINVAL } return MediaState(C.libvlc_media_player_get_state(this.ptr)), checkError() }
// State returns the current movie state. func (this *Player) State() (MediaState, error) { if this.ptr == nil { return 0, &VLCError{"Player is nil"} } return MediaState(C.libvlc_media_player_get_state(this.ptr)), checkError() }