public override bool EnableStream(string selectedStream) { // Do not enumerate raw stream names again, as they were made unique (adding counters) for (int i = 0; i < Count; ++i) { string subtitleTrackName = this[i].Name; if (subtitleTrackName.Equals(selectedStream)) { ServiceRegistration.Get <ILogger>().Debug("MpcStreamInfoHandler: Enable stream '{0}'", selectedStream); MpcSubtitles.SetCurrent(i); lock (_syncObj) _currentStream = this[i]; return(true); } } return(false); }