mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
webrtc_sendrecv.py: Fix warnings about gi version
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4644>
This commit is contained in:
parent
f722d9c428
commit
61e536b546
1 changed files with 3 additions and 3 deletions
|
@ -7,9 +7,6 @@
|
|||
# with a browser JS app, implemented in Python.
|
||||
|
||||
from websockets.version import version as wsv
|
||||
from gi.repository import GstSdp
|
||||
from gi.repository import GstWebRTC
|
||||
from gi.repository import Gst
|
||||
import random
|
||||
import ssl
|
||||
import websockets
|
||||
|
@ -21,8 +18,11 @@ import argparse
|
|||
|
||||
import gi
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import Gst # NOQA
|
||||
gi.require_version('GstWebRTC', '1.0')
|
||||
from gi.repository import GstWebRTC # NOQA
|
||||
gi.require_version('GstSdp', '1.0')
|
||||
from gi.repository import GstSdp # NOQA
|
||||
|
||||
# Ensure that gst-python is installed
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue