Fixed: Framerate in mediainfo is now parsed culture invariant.

This commit is contained in:
Taloth Saldono 2014-08-23 09:40:34 +02:00
parent 04160a61c9
commit bd60133274
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ using MediaInfoLib;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.Disk;
using System.Globalization;
namespace NzbDrone.Core.MediaFiles.MediaInfo
{
@ -59,7 +60,7 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
Int32.TryParse(mediaInfo.Get(StreamKind.Video, 0, "Width"), out width);
Int32.TryParse(mediaInfo.Get(StreamKind.Video, 0, "Height"), out height);
Int32.TryParse(mediaInfo.Get(StreamKind.Video, 0, "BitRate"), out videoBitRate);
Decimal.TryParse(mediaInfo.Get(StreamKind.Video, 0, "FrameRate"), out videoFrameRate);
Decimal.TryParse(mediaInfo.Get(StreamKind.Video, 0, "FrameRate"), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out videoFrameRate);
//Runtime
Int32.TryParse(mediaInfo.Get(StreamKind.Video, 0, "PlayTime"), out videoRuntime);