mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
omx: remove useless double negations
flush and port->flushing are both gboolean.
This commit is contained in:
parent
871625c950
commit
72844211f7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue