summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-08-30 10:27:32 +0530
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-01-07 05:48:41 +0000
commit72844211f76e1e790e43ee4424c12a40db79fe69 (patch)
treea4c73a1375920f6c809998e4503a979a9962473c
parent871625c950f3f20f5f410c9f707f2a3311587365 (diff)
downloadgst-omx-72844211f76e1e790e43ee4424c12a40db79fe69.tar.gz
omx: remove useless double negations
flush and port->flushing are both gboolean.
-rw-r--r--omx/gstomx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index cb53691..53c8ffd 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -2387,7 +2387,7 @@ gst_omx_port_set_flushing (GstOMXPort * port, GstClockTime timeout,
gst_omx_component_handle_messages (comp);
- if (! !flush == ! !port->flushing) {
+ if (flush == port->flushing) {
GST_DEBUG_OBJECT (comp->parent, "%s port %u was %sflushing already",
comp->name, port->index, (flush ? "" : "not "));
goto done;
@@ -2427,7 +2427,7 @@ gst_omx_port_set_flushing (GstOMXPort * port, GstClockTime timeout,
goto done;
}
- if (! !port->flushing != ! !flush) {
+ if (port->flushing != flush) {
GST_ERROR_OBJECT (comp->parent, "%s: another flush happened in the "
" meantime", comp->name);
goto done;