-
Notifications
You must be signed in to change notification settings - Fork 174
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
feat: add openssl
and libsrtp
to build dtls and srtp gstreamer plugins in gst-plugins-bad
#1514
Conversation
openssl
as dependency for gstreamer bad plugins to include dtlsopenssl
and libsrtp
to build dtls and srtp gstreamer plugins in gst-plugins-bad
e25f6ef
to
e254cb0
Compare
…e dtls As per https://gitlab.freedesktop.org/Ben-xD/gstreamer/blob/2e198d4e59e107126baafa1b863f75bbdef19c17/subprojects/gst-plugins-bad/ext/dtls/meson.build#L24, dtls is part of gst-plugins-bad, and relies on gstreamer, libcrypto, openssl and winsock2. I haven't confirmed that this works because my build fails when I add `openssl` as a dependency: `gvsbuild build gtk4 pygobject pycairo gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-python webrtc-audio-processing --enable-gi --py-wheel --clean` Just building openssl takes a very long time: `gvsbuild build openssl` (currently building)
412ac9e
to
587818b
Compare
I can't seem to get the gstreamer srtp plugin to build. It's missing even with my changes above. I can see |
gvsbuild/projects/__init__.py
Outdated
@@ -28,6 +28,7 @@ | |||
from gvsbuild.projects.gperf import Gperf | |||
from gvsbuild.projects.graphene import Graphene | |||
from gvsbuild.projects.gsettings_desktop_schemas import GSettingsDesktopSchemas | |||
from gvsbuild.projects.libsrtp2 import LibSRTP |
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.
Hi @ben-xD, thanks for the contribution! I'll look in to why Ruff isn't enforcing this automatically, but could you please put libsrt2 in alphabetical order with the other imports? Thanks!
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.
Hey Dan, sure. I have leveraged my alphabet skills (or lack thereof) in 0b3fe82
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.
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.
Thanks @ben-xD!
Problem
webrtcbin
gstreamer element relies on dtls but it's not being built in gvsbuild's GstPluginsBad project. When I tried to usewebrtcbin
in my app, I got:I also saw that dtls was missing with gst-inspect-1.0:
As per https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/main/subprojects/gst-plugins-bad/ext/dtls/meson.build#L24, dtls is part of gst-plugins-bad, and relies on gstreamer, libcrypto, openssl and winsock2.
Slow openssl
Adding openssl slows down the build significantly though: