From 4dc5d901b6c320de7e5027a5a58444fae228b727 Mon Sep 17 00:00:00 2001 From: Seth Hinze Date: Mon, 14 Sep 2015 19:28:29 -0700 Subject: [PATCH] Split ffprobe output on CRLF or LF. --- MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs index 503399f8db..5d5e76074d 100644 --- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs +++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs @@ -353,7 +353,7 @@ namespace MediaBrowser.MediaEncoding.Encoder { var text = await reader.ReadToEndAsync().ConfigureAwait(false); - var lines = StringHelper.RegexSplit(text, "\r\n"); + var lines = StringHelper.RegexSplit(text, "[\r\n]+"); foreach (var line in lines) { if (string.IsNullOrWhiteSpace(line))