mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
omx: cleanup code a bit to remove else statement
https://bugzilla.gnome.org/show_bug.cgi?id=745191
This commit is contained in:
parent
d0bb94ca63
commit
df58d8baac
1 changed files with 4 additions and 8 deletions
12
omx/gstomx.c
12
omx/gstomx.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue