mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
re-enable sync
This commit is contained in:
@@ -18,6 +18,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
public class EncodingJob : IDisposable
|
||||
{
|
||||
public bool HasExited { get; internal set; }
|
||||
public bool IsCancelled { get; internal set; }
|
||||
|
||||
public Stream LogFileStream { get; set; }
|
||||
public IProgress<double> Progress { get; set; }
|
||||
@@ -399,6 +400,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
// job.Framerate = framerate;
|
||||
|
||||
if (!percentComplete.HasValue && ticks.HasValue && RunTimeTicks.HasValue)
|
||||
{
|
||||
var pct = ticks.Value/RunTimeTicks.Value;
|
||||
percentComplete = pct*100;
|
||||
}
|
||||
|
||||
if (percentComplete.HasValue)
|
||||
{
|
||||
Progress.Report(percentComplete.Value);
|
||||
|
||||
Reference in New Issue
Block a user