simple-example: transmission can begin earlier than in ready state
authorPhilip Withnall <philip@tecnocode.co.uk>
Tue, 1 Mar 2016 23:05:20 +0000 (23:05 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 1 Mar 2016 23:05:25 +0000 (23:05 +0000)
Reviewed-by: Olivier CrĂȘte <olivier.crete@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D819

examples/simple-example.c

index 6ce171a..a511d29 100644 (file)
@@ -220,7 +220,7 @@ cb_component_state_changed(NiceAgent *agent, guint _stream_id,
   g_debug("SIGNAL: state changed %d %d %s[%d]\n",
       _stream_id, component_id, state_name[state], state);
 
-  if (state == NICE_COMPONENT_STATE_READY) {
+  if (state == NICE_COMPONENT_STATE_CONNECTED) {
     NiceCandidate *local, *remote;
 
     // Get current selected candidate pair and print IP address used