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

@ -673,8 +673,7 @@ on_context_notify (GObject *gobject,
switch (state) {
case PINOS_CONTEXT_STATE_UNCONNECTED:
case PINOS_CONTEXT_STATE_CONNECTING:
case PINOS_CONTEXT_STATE_REGISTERING:
case PINOS_CONTEXT_STATE_READY:
case PINOS_CONTEXT_STATE_CONNECTED:
break;
case PINOS_CONTEXT_STATE_ERROR:
GST_ELEMENT_ERROR (pinossink, RESOURCE, FAILED,
@ -706,7 +705,7 @@ gst_pinos_sink_open (GstPinosSink * pinossink)
while (TRUE) {
PinosContextState state = pinos_context_get_state (pinossink->ctx);
if (state == PINOS_CONTEXT_STATE_READY)
if (state == PINOS_CONTEXT_STATE_CONNECTED)
break;
if (state == PINOS_CONTEXT_STATE_ERROR)