Skip to content

Commit

Permalink
Merge pull request #270 from MediaPortal/MP1-5188-fix-adapt-refresh-r…
Browse files Browse the repository at this point in the history
…ate-for-interlaced-videos

MP1-5188: Core: AdaptRefreshRate: Check MediaInfo scan type for null
  • Loading branch information
andrewjswan authored Feb 19, 2024
2 parents 9cdadfc + 652cc89 commit aa3c7da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mediaportal/Core/Player/RefreshRateChanger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ public static void AdaptRefreshRate(string strFile, MediaType type)

Log.Info("RefreshRateChanger.AdaptRefreshRate: Scantype on file {0} is {1}", strFile, g_Player.MediaInfo.ScanType);

if (g_Player.MediaInfo.IsInterlaced || g_Player.MediaInfo.ScanType.Equals("mbaff", StringComparison.OrdinalIgnoreCase))
if (g_Player.MediaInfo.IsInterlaced ||
(g_Player.MediaInfo.ScanType != null && g_Player.MediaInfo.ScanType.Equals("mbaff", StringComparison.OrdinalIgnoreCase)))
{
Log.Info("RefreshRateChanger.AdaptRefreshRate: Interlacing detected on file {0}. Fps is {1}", strFile, fps);

Expand Down

0 comments on commit aa3c7da

Please sign in to comment.