diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2020-12-01 10:37:57 +0000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2020-12-07 13:35:27 +1100 |
commit | be3149fae00ba903dc41c70e3cf4caf1e505e7a1 (patch) | |
tree | 35364f882e2f31f63a4d8f8fb61ac567eabf2812 /recipes | |
parent | 3e98d9ef0d005f182fb69d8081db4d14b5f99d0d (diff) |
ffmpeg: use Platform enums instead of strings
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/661>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/ffmpeg.recipe | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/ffmpeg.recipe b/recipes/ffmpeg.recipe index 821adc2b..51237579 100644 --- a/recipes/ffmpeg.recipe +++ b/recipes/ffmpeg.recipe @@ -85,9 +85,9 @@ class Recipe(recipe.Recipe): self.config.target_platform == Platform.WINDOWS: libavextraconf += ' --enable-cross-compile' target_os = self.config.target_platform - if target_os == 'windows': + if target_os == Platform.WINDOWS: target_os = 'mingw32' - elif target_os == 'ios': + elif target_os == Platform.IOS: target_os = 'darwin' target_arch = self.config.host.split('-', 1)[0] libavextraconf += ' --target-os=' + target_os |