Use get_offer instead of subscripting for better compatibility.
[toast/stream2beamer.git] / laplace_client.py
index 4180f3014d233d1b4e101881673abfd92e6dba95..0aa7f50b2f223cb6b6bb2aacd616e4e197fb649e 100755 (executable)
@@ -51,7 +51,7 @@ class WebRTCClient:
         log.info('on_offer_created')
         promise.wait()
         reply = promise.get_reply()
-        offer = reply['offer']
+        offer = reply.get_value('offer')
         promise = Gst.Promise.new()
         self.webrtc.emit('set-local-description', offer, promise)
         promise.interrupt()