summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonchul Lee <chul0812@gmail.com>2015-02-26 09:27:44 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-02-26 11:15:37 +0200
commitdf58d8baac0a647cac33e3e273c8c1f9c3ce2274 (patch)
tree9522060252f1766f338c3f4c3bd28c2ee0fcdd2e
parentd0bb94ca63f68125e443a9352e68930ec8973007 (diff)
omx: cleanup code a bit to remove else statement
https://bugzilla.gnome.org/show_bug.cgi?id=745191
-rw-r--r--omx/gstomx.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index eced224..2108acf 100644
--- a/omx/gstomx.c
+++ b/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);