From b1a4aa6a2109249a821a4f61afe6e5715ec3a1b3 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 4 Jul 2017 11:27:48 +0200 Subject: [PATCH] Fix --- src/NadekoBot/Services/Music/SongBuffer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Services/Music/SongBuffer.cs b/src/NadekoBot/Services/Music/SongBuffer.cs index f962f919..29979b59 100644 --- a/src/NadekoBot/Services/Music/SongBuffer.cs +++ b/src/NadekoBot/Services/Music/SongBuffer.cs @@ -40,7 +40,7 @@ namespace NadekoBot.Services.Music return Process.Start(new ProcessStartInfo { FileName = "ffmpeg", - Arguments = $"-ss {skipTo:F4} -i {songUri} -f s16le -ar 48000 -vn -ac 2 pipe:1 -loglevel error -threads 0 -reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5", + Arguments = $"-ss {skipTo:F4} -i {songUri} -f s16le -ar 48000 -vn -ac 2 pipe:1 -loglevel error -reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5", UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true, @@ -51,7 +51,7 @@ namespace NadekoBot.Services.Music private void P_ErrorDataReceived(object sender, DataReceivedEventArgs e) { _log.Error(">>> " + e.Data); - if (e.Data.Contains("Error in the pull function")) + if (e.Data?.Contains("Error in the pull function") == true) { _log.Info("Got error in the pull function!"); restart = true;