aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-08-19 09:49:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-08-19 09:49:26 +0530
commitbf6bdf22de7fb96390cafa9b90c2ae9eba5170bf (patch)
tree1b6076581792fe430d476b85e25a3c84037be4e2 /yt_dlp/postprocessor/ffmpeg.py
parentb76e9cedb33d23f21060281596f7443750f67758 (diff)
Revert "[ffmpeg] Set `ffmpeg_location` in a contextvar"
This reverts commit 6a7d3a0a0981d05903e70bcb31fc3f9438eedf22.
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index a1f367ae4..20a0b22f0 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -1,5 +1,4 @@
import collections
-import contextvars
import itertools
import json
import os
@@ -83,8 +82,6 @@ class FFmpegPostProcessorError(PostProcessingError):
class FFmpegPostProcessor(PostProcessor):
- _ffmpeg_location = contextvars.ContextVar('ffmpeg_location', default=None)
-
def __init__(self, downloader=None):
PostProcessor.__init__(self, downloader)
self._prefer_ffmpeg = self.get_param('prefer_ffmpeg', True)
@@ -104,7 +101,7 @@ class FFmpegPostProcessor(PostProcessor):
def _determine_executables(self):
programs = [*self._ffmpeg_to_avconv.keys(), *self._ffmpeg_to_avconv.values()]
- location = self.get_param('ffmpeg_location', self._ffmpeg_location.get())
+ location = self.get_param('ffmpeg_location')
if location is None:
return {p: p for p in programs}