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 */
goto retry;
} else {
GST_DEBUG_OBJECT (comp->parent, "%s port %u has pending buffers",
comp->name, port->index);
_buf = g_queue_pop_head (&port->pending_buffers);
ret = GST_OMX_ACQUIRE_BUFFER_OK;
goto done;
}
g_assert_not_reached ();
goto retry;
GST_DEBUG_OBJECT (comp->parent, "%s port %u has pending buffers",
comp->name, port->index);
_buf = g_queue_pop_head (&port->pending_buffers);
ret = GST_OMX_ACQUIRE_BUFFER_OK;
done:
g_mutex_unlock (&comp->lock);