aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index e1b8695ec5f..5a8818333a9 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -862,6 +862,19 @@ install them, let us know by filing a bug!")
android = self.handle_android_target(target)
return target, android
+ # A guess about which platforms should use the gstreamer media stack
+ def pick_media_stack(self, media_stack, target):
+ if not(media_stack):
+ if (
+ not(target) or
+ ("armv7" in target and "android" in target) or
+ ("x86_64" in target)
+ ):
+ media_stack = "gstreamer"
+ else:
+ media_stack = "dummy"
+ return ["media-" + media_stack]
+
def run_cargo_build_like_command(
self, command, cargo_args,
env=None, verbose=False,