From 99f0c585a319d48cc5064f93d49d1928e717acae Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Sun, 20 Jun 2021 15:15:39 +0545 Subject: [PATCH] fix EPIPE on empty encoderArgs --- src/Structures/Queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index f744941..c8b3382 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -242,7 +242,7 @@ class Queue { if (this._activeFilters.join("") === _filters.join("")) return; - const newFilters = AudioFilters.create(_filters); + const newFilters = AudioFilters.create(_filters).trim(); const streamTime = this.streamTime; this._activeFilters = _filters; @@ -250,7 +250,7 @@ class Queue { immediate: true, filtersUpdate: true, seek: streamTime, - encoderArgs: ["-af", newFilters] + encoderArgs: !_filters.length ? undefined : ["-af", newFilters] }); }