EricssonResearch / openwebrtc

A cross-platform WebRTC client framework based on GStreamer
http://www.openwebrtc.org
BSD 2-Clause "Simplified" License
1.8k stars 537 forks source link

Fix wrongly handled absence of candidates #665

Closed danips closed 7 years ago

danips commented 7 years ago

Accoding to json-glib documentation: https://developer.gnome.org/json-glib/stable/JsonReader.html

"If reader is not currently on an object, or if the member_name is not defined in the object, the JsonReader will be put in an error state until json_reader_end_member() is called. This means that if used conditionally, json_reader_end_member() must be called on both code paths."