public void SetSubtitleText(VideoInfo video, GetTrackingInfo getTrackingInfo, out Thread thread) { thread = null; if (tryLoadSubtitles) { ITrackingInfo it = getTrackingInfo(video); if (sdObject != null && it != null && String.IsNullOrEmpty(video.SubtitleText)) { thread = new Thread( delegate() { SafeSetSubtitleText(video, it); }); thread.Start(); } } }
public void SetSubtitleText(VideoInfo video, GetTrackingInfo getTrackingInfo, bool threaded = false) { subtitleThread = null; if (tryLoadSubtitles) { ITrackingInfo it = getTrackingInfo(video); if (sdObject != null && it != null && String.IsNullOrEmpty(video.SubtitleText)) if (threaded) { subtitleThread = new Thread( delegate() { SafeSetSubtitleText(video, it); }); subtitleThread.Start(); } else SafeSetSubtitleText(video, it); } }
public void SetSubtitleText(VideoInfo video, GetTrackingInfo getTrackingInfo, out Thread thread) { thread = null; if (tryLoadSubtitles) { ITrackingInfo it = getTrackingInfo(video); if (sdObject != null && it != null && String.IsNullOrEmpty(video.SubtitleText)) { thread = new Thread( delegate() { SafeSetSubtitleText(video, it); }); thread.Start(); } } }