summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2020-12-01 10:37:57 +0000
committerTim-Philipp Müller <tim@centricular.com>2021-01-13 01:04:37 +0000
commite52f6d444d8fb93116b23ee31c2df3d1ec10e016 (patch)
tree1927de8403ce7f962cc303fbc2c4e1a9f58e2d30
parent0ab26d6f3ed7bcd53569e5a0298a8d76424b6ade (diff)
ffmpeg: use Platform enums instead of strings
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/661>
-rw-r--r--recipes/ffmpeg.recipe4
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