 
                 case "currentItem.status":
                     if let item = player.currentItem where item.status == .Failed {
-                        state = .Error(item.error)
+                        state = .Failed(item.error)
                         nextOrStop()
                     }
 

        return true
    case (.WaitingForConnection, .WaitingForConnection):
        return true
    case (.Error(let e1), .Error(let e2)):
        return e1 == e2
    default:
        return false

    case Paused
    case Stopped
    case WaitingForConnection
    case Failed(NSError?)
}

extension AudioPlayerState: Equatable { }
