File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ void SetPoster()
317317 return ;
318318 }
319319
320- var videoTrack = PlayerItem . Asset . TracksWithMediaType ( AVMediaTypes . Video . GetConstant ( ) ) . FirstOrDefault ( ) ;
320+ var videoTrack = PlayerItem . Asset . TracksWithMediaType ( AVMediaTypes . Video . GetConstant ( ) ?? "0" ) . FirstOrDefault ( ) ;
321321 if ( videoTrack is not null )
322322 {
323323 return ;
@@ -512,7 +512,7 @@ protected virtual void Dispose(bool disposing)
512512 var asset = avPlayerItem . Asset ;
513513
514514 // Retrieve the video track
515- var videoTrack = asset . TracksWithMediaType ( AVMediaTypes . Video . GetConstant ( ) ) . FirstOrDefault ( ) ;
515+ var videoTrack = asset . TracksWithMediaType ( AVMediaTypes . Video . GetConstant ( ) ?? "0" ) . FirstOrDefault ( ) ;
516516
517517 if ( videoTrack is not null )
518518 {
You can’t perform that action at this time.
0 commit comments