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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
        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);
 }
Exemple #6
0
 public void Enqueue(TrackInfo track, ProfileConfiguration config,
                     TrackTranscodedHandler handler, TranscodeCancelledHandler cancelledHandler, TranscodeErrorHandler errorHandler)
 {
     Enqueue(track, GetTempUriFor(config.Profile.OutputFileExtension), config, handler, cancelledHandler, errorHandler);
 }