fix EPIPE on empty encoderArgs
This commit is contained in:
parent
621bd1c274
commit
99f0c585a3
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ class Queue<T = unknown> {
|
||||||
|
|
||||||
if (this._activeFilters.join("") === _filters.join("")) return;
|
if (this._activeFilters.join("") === _filters.join("")) return;
|
||||||
|
|
||||||
const newFilters = AudioFilters.create(_filters);
|
const newFilters = AudioFilters.create(_filters).trim();
|
||||||
const streamTime = this.streamTime;
|
const streamTime = this.streamTime;
|
||||||
this._activeFilters = _filters;
|
this._activeFilters = _filters;
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ class Queue<T = unknown> {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
filtersUpdate: true,
|
filtersUpdate: true,
|
||||||
seek: streamTime,
|
seek: streamTime,
|
||||||
encoderArgs: ["-af", newFilters]
|
encoderArgs: !_filters.length ? undefined : ["-af", newFilters]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue