omx: cleanup code a bit to remove else statement

https://bugzilla.gnome.org/show_bug.cgi?id=745191
This commit is contained in:
Wonchul Lee 2015-02-26 09:27:44 +09:00 committed by Sebastian Dröge
parent d0bb94ca63
commit df58d8baac

View file

@ -1335,16 +1335,12 @@ retry:
/* And now check everything again and maybe get a buffer */ /* And now check everything again and maybe get a buffer */
goto retry; goto retry;
} else { }
GST_DEBUG_OBJECT (comp->parent, "%s port %u has pending buffers", GST_DEBUG_OBJECT (comp->parent, "%s port %u has pending buffers",
comp->name, port->index); comp->name, port->index);
_buf = g_queue_pop_head (&port->pending_buffers); _buf = g_queue_pop_head (&port->pending_buffers);
ret = GST_OMX_ACQUIRE_BUFFER_OK; ret = GST_OMX_ACQUIRE_BUFFER_OK;
goto done;
}
g_assert_not_reached ();
goto retry;
done: done:
g_mutex_unlock (&comp->lock); g_mutex_unlock (&comp->lock);