/// <summary> /// Removes all the requests that are related to the given media. /// </summary> /// <param name="media">The media.</param> public void RemoveRequest(CameraCutMedia media) { _queue.RemoveAll(x => x.Media == media); // End rendering if queue is not empty if (_queue.Count == 0 && _task != null && _task.Enabled) { _task.Enabled = false; } }
/// <summary> /// Initializes a new instance of the <see cref="Request"/> struct. /// </summary> /// <param name="media">The media.</param> /// <param name="thumbnailIndex"> The index of the thumbnail.</param> public Request(CameraCutMedia media, int thumbnailIndex) { Media = media; ThumbnailIndex = thumbnailIndex; }