-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
ffmpeg: Patch for compatibility with 10.12 AVFoundation #328424
Conversation
Do you have any plans to try upstreaming this to FFmpeg or would you prefer someone else brave the rapids? |
Result of 1 package marked as broken and skipped:
7 packages failed to build:
15 packages built:
|
@emilazy, I think we should respect upstream's decision to support a minimum of 10.13, TBH. That's already quite generous. This is just a temporary band-aid for us. |
Maybe we should follow suit :') |
For clarity the failures on ffmpeg_7-full are expected. That requires more fixes. |
-static NSArray* getDevicesWithMediaType(AVMediaType mediaType) { | ||
+static NSArray* getDevicesWithMediaType(NSString * mediaType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For how long will this be forward compatible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like AVMediaType
was introduced in 10.13, and is documented as an alias, so probably for a while unless there’s explicit notice that depending on it being an alias is deprecated?
This was disabled in NixOS#322724 after NixOS#328424 provided a patch fixing it.
Description of changes
This patch conflicts mildly with #322724, if that is merged first this one should be updated not to disable AVFoundation, if this is merged first that PR should be updated not to introduce the disabling.
The vendored patch can be dropped as soon as we start building ffmpeg against a newer SDK but the effort to make it compatible with 10.12 was very minor.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.