From 61e536b546f64da557311c3a552d285460edcacf Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 9 May 2023 18:21:23 +0530 Subject: [PATCH] webrtc_sendrecv.py: Fix warnings about gi version Part-of: --- .../gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py index 46c1b7dc28..5c794bfdcc 100755 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py @@ -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: