Ejemplo n.º 1
0
        /// <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;
            }
        }
Ejemplo n.º 2
0
 /// <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;
 }