webrtc_sendrecv.py: Fix deprecation warning with Python 3.10
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 1 Mar 2022 14:23:41 +0000 (19:53 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Mar 2022 16:33:28 +0000 (16:33 +0000)
commite453e43e5a91f66ca872118d1301c3d4189a3675
tree180a17ef49199e9f15d7f439f8065d59878aa670
parent4c2fd7f1048ffe336e4c3ebb933fb83c18635032
webrtc_sendrecv.py: Fix deprecation warning with Python 3.10

asyncio.get_event_loop() will not implicitly create a new event loop
in a future version of Python, so we need to do that explicitly.

```
webrtc_sendrecv.py:188: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1821>
subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py