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


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


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

extension AudioPlayerState: Equatable { }
