Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash when supplying FFMPEG_BINARY environment variable #30022

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Fixed crash when supplying FFMPEG_BINARY environment variable #30022

merged 1 commit into from
Apr 22, 2024

Conversation

timothyjrogers
Copy link
Contributor

@timothyjrogers timothyjrogers commented Apr 21, 2024

Fixes #28375

The code that picks up FFMPEG_BINARY as an environment variable in config/initializers/ffmpeg.rb currently assigns it to an object that doesn't exist anywhere in the code base. This change updates that assignment to use the config.x custom config object used for other custom config options, as well as adding a check for the new environment variable FFPROBE_BINARY. The new variable is because one of the the three locations Mastodon uses ffmpeg actually uses the ffprobe utility and these have separate binary files.

@ClearlyClaire ClearlyClaire added bug Something isn't working to backport PR needed to be backported labels Apr 22, 2024
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Apr 22, 2024
Merged via the queue into mastodon:main with commit 1ca6ff8 Apr 22, 2024
35 checks passed
@ClearlyClaire ClearlyClaire mentioned this pull request May 13, 2024
@ClearlyClaire ClearlyClaire removed the to backport PR needed to be backported label May 17, 2024
This was referenced May 29, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 1, 2024
Ember-ruby pushed a commit to Ember-ruby/mastodon-glitch that referenced this pull request Jun 9, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 26, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 26, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 26, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 26, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 26, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Jun 27, 2024
ttrace pushed a commit to ttrace/mastodon that referenced this pull request Jul 5, 2024
atsu1125 pushed a commit to atsu1125/mastodon that referenced this pull request Jul 6, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Sep 9, 2024
noellabo pushed a commit to fedibird/mastodon that referenced this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when setting FFMPEG_BINARY to override ffmpeg binary path
2 participants