public TranscodeContext (TrackInfo track, SafeUri out_uri, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { Track = track; OutUri = out_uri; Config = config; Handler = handler; CancelledHandler = cancelledHandler; ErrorHandler = errorHandler; }
public TranscodeContext(TrackInfo track, SafeUri out_uri, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { Track = track; OutUri = out_uri; Config = config; Handler = handler; CancelledHandler = cancelledHandler; ErrorHandler = errorHandler; }
public void Enqueue(TrackInfo track, SafeUri out_uri, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { bool start = false; lock (queue) { start = (queue.Count == 0 && !transcoding); queue.Enqueue(new TranscodeContext(track, out_uri, config, handler, cancelledHandler, errorHandler)); UserJob.Total++; } if (start) { ProcessQueue(); } }
public void Enqueue (TrackInfo track, SafeUri out_uri, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { bool start = false; lock (queue) { start = (queue.Count == 0 && !transcoding); queue.Enqueue (new TranscodeContext (track, out_uri, config, handler, cancelledHandler, errorHandler)); UserJob.Total++; } if (start) ProcessQueue (); }
public void Enqueue (TrackInfo track, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { Enqueue (track, GetTempUriFor (config.Profile.OutputFileExtension), config, handler, cancelledHandler, errorHandler); }
public void Enqueue(TrackInfo track, ProfileConfiguration config, TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler) { Enqueue(track, GetTempUriFor(config.Profile.OutputFileExtension), config, handler, cancelledHandler, errorHandler); }