mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 02:01:28 +01:00 
			
		
		
		
	add tv guide hover menus
This commit is contained in:
		
							parent
							
								
									d0a5197c0a
								
							
						
					
					
						commit
						7d81888038
					
				@ -318,7 +318,17 @@ namespace MediaBrowser.Api.Playback
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if (videoCodec.Equals("libx264", StringComparison.OrdinalIgnoreCase))
 | 
					            if (videoCodec.Equals("libx264", StringComparison.OrdinalIgnoreCase))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
					                switch (GetQualitySetting())
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    case EncodingQuality.HighSpeed:
 | 
				
			||||||
 | 
					                        return "-preset ultrafast";
 | 
				
			||||||
 | 
					                    case EncodingQuality.HighQuality:
 | 
				
			||||||
                        return "-preset superfast";
 | 
					                        return "-preset superfast";
 | 
				
			||||||
 | 
					                    case EncodingQuality.MaxQuality:
 | 
				
			||||||
 | 
					                        return "-preset superfast";
 | 
				
			||||||
 | 
					                    default:
 | 
				
			||||||
 | 
					                        throw new Exception("Unrecognized MediaEncodingQuality value.");
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (videoCodec.Equals("mpeg4", StringComparison.OrdinalIgnoreCase))
 | 
					            if (videoCodec.Equals("mpeg4", StringComparison.OrdinalIgnoreCase))
 | 
				
			||||||
 | 
				
			|||||||
@ -380,6 +380,10 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
 | 
				
			|||||||
            CurrentProgress = null;
 | 
					            CurrentProgress = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            OnTaskCompleted(startTime, endTime, status, failureException);
 | 
					            OnTaskCompleted(startTime, endTime, status, failureException);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // Bad practice, i know. But we keep a lot in memory, unfortunately.
 | 
				
			||||||
 | 
					            GC.Collect(2, GCCollectionMode.Forced, true);
 | 
				
			||||||
 | 
					            GC.Collect(2, GCCollectionMode.Forced, true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
@ -390,7 +394,7 @@ namespace MediaBrowser.Common.Implementations.ScheduledTasks
 | 
				
			|||||||
        /// <returns>Task.</returns>
 | 
					        /// <returns>Task.</returns>
 | 
				
			||||||
        private Task ExecuteTask(CancellationToken cancellationToken, IProgress<double> progress)
 | 
					        private Task ExecuteTask(CancellationToken cancellationToken, IProgress<double> progress)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return Task.Run(async () => await ScheduledTask.Execute(cancellationToken, progress).ConfigureAwait(false));
 | 
					            return Task.Run(async () => await ScheduledTask.Execute(cancellationToken, progress).ConfigureAwait(false), cancellationToken);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user