mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Fix vpp null reference
This commit is contained in:
parent
91ee1b1d02
commit
0cce843f07
@ -131,6 +131,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
private bool IsVppTonemappingSupported(EncodingJobInfo state, EncodingOptions options)
|
private bool IsVppTonemappingSupported(EncodingJobInfo state, EncodingOptions options)
|
||||||
{
|
{
|
||||||
var videoStream = state.VideoStream;
|
var videoStream = state.VideoStream;
|
||||||
|
if (videoStream == null)
|
||||||
|
{
|
||||||
|
// Remote stream doesn't have media info, disable vpp tonemapping.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var codec = videoStream.Codec;
|
var codec = videoStream.Codec;
|
||||||
if (string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user