omx: remove useless double negations
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Fri, 30 Aug 2019 04:57:32 +0000 (10:27 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 7 Jan 2020 05:48:41 +0000 (05:48 +0000)
flush and port->flushing are both gboolean.

omx/gstomx.c

index cb53691..53c8ffd 100644 (file)
@@ -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;