webrtc_sendrecv.py: Print an error on unknown JSON message

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1864>
This commit is contained in:
Nirbheek Chauhan 2022-03-05 20:33:48 +05:30 committed by GStreamer Marge Bot
parent 90da0e1d1e
commit e0378f9913

View file

@ -220,6 +220,8 @@ class WebRTCClient:
candidate = ice['candidate']
sdpmlineindex = ice['sdpMLineIndex']
self.webrtc.emit('add-ice-candidate', sdpmlineindex, candidate)
else:
print_error('Unknown JSON message')
def close_pipeline(self):
if self.pipe: