remove READY state on context

Now that we don't need to register anymore to the daemon we can just
remove this state.
This commit is contained in:
Wim Taymans 2016-05-19 11:29:11 +02:00
parent 5f10a933a1
commit 89f8f41045
7 changed files with 16 additions and 22 deletions

View file

@ -380,7 +380,7 @@ gst_pinos_device_provider_probe (GstDeviceProvider * provider)
goto failed;
}
if (state == PINOS_CONTEXT_STATE_READY)
if (state == PINOS_CONTEXT_STATE_CONNECTED)
break;
/* Wait until something happens */
@ -442,10 +442,9 @@ context_state_notify (GObject *gobject,
switch (state) {
case PINOS_CONTEXT_STATE_CONNECTING:
case PINOS_CONTEXT_STATE_REGISTERING:
break;
case PINOS_CONTEXT_STATE_UNCONNECTED:
case PINOS_CONTEXT_STATE_READY:
case PINOS_CONTEXT_STATE_CONNECTED:
break;
case PINOS_CONTEXT_STATE_ERROR:
GST_ERROR_OBJECT (self, "context error: %s",
@ -512,7 +511,7 @@ gst_pinos_device_provider_start (GstDeviceProvider * provider)
goto not_running;
}
if (state == PINOS_CONTEXT_STATE_READY)
if (state == PINOS_CONTEXT_STATE_CONNECTED)
break;
/* Wait until something happens */