Skip to content

GStreamer default media backend - #30420

Closed
sagudev wants to merge 2 commits into
servo:mainfrom
sagudev:default-gstreamer
Closed

sagudev wants to merge 2 commits into
servo:mainfrom
sagudev:default-gstreamer

Conversation

@sagudev

@sagudev sagudev commented Sep 25, 2023

Copy link
Copy Markdown
Member

Try run: https://github.com/sagudev/servo/actions/runs/6289052004


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___

@sagudev
sagudev requested a review from mrobinson September 25, 2023 06:03
@sagudev sagudev changed the title Makes gstreamer default media backend GStreamer default media backend Sep 25, 2023

@mrobinson mrobinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. I really like the use of an enum to store the configuration value. Just a couple changes requested. We should also run this by the community to make sure the change is acceptable to everyone.

Comment thread python/servo/command_base.py Resolved
Comment thread python/servo/command_base.py Resolved
Comment thread python/servo/command_base.py Resolved
@sagudev
sagudev requested a review from mrobinson September 28, 2023 09:35
Comment on lines +915 to +917

if self.media_stack.is_dummy() and "--no-default-features" not in cargo_args:
args += ["--no-default-features"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm. There is an issue here and it's that using the dummy media stack disables the "max_log_level", "native-bluetooth", and "webdriver" features. Perhaps we should make these features non-configurable? I'm not sure what the right thing to do here is.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's why I wanted ports so I could detect which features to enable. Webdriver should probably be hidden behind pref.

We could also move gstreamer enabling into cargo per target, then mach would only need to handle cross and forced dummy cases.
inspiration: https://stackoverflow.com/questions/57972355/enable-a-cargo-feature-by-default-when-the-target-arch-is-wasm

@theguy000

Copy link
Copy Markdown

so... update?

@mrobinson

Copy link
Copy Markdown
Member

I think @mukilan is now working on this issue and can hopefully revive this change using Cargo featuresets. Sorry for letting it sit so long, but hopefully there will be movement soon.

opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-servo__servo that referenced this pull request Oct 19, 2026
This change enables GStreamer by default on all platforms other than
Android and OHOS in an effort to try to make `./mach build` do the same
thing as `cargo build`. There is more work to do here, but this is an
important step.

Testing: There really isn't any automated testing for this kind of
change.
Closes: servo#30420.

Signed-off-by: Martin Robinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants