gstmsdkdec: fix logical operation that misses parenthesis
authorJordan Petridis <jpetridis@gnome.org>
Fri, 10 Apr 2020 15:22:21 +0000 (18:22 +0300)
committerJordan Petridis <jpetridis@gnome.org>
Fri, 10 Apr 2020 15:22:21 +0000 (18:22 +0300)
commit87fc038f673575630225a774b627293bc25b0b71
treeb9a0471028974d7b65cb9a7116664ac57646d366
parent5a29917a63a1706e6b10b490fefa22759e67e856
gstmsdkdec: fix logical operation that misses parenthesis

in C, & is weaker than the ! operator and clang is giving the following
error about it.

```
../subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c:731:7: error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses]
  if (!gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
      ^                                              ~
../subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c:731:7: note: add parentheses after the '!' to evaluate the bitwise operator first
  if (!gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
      ^
       (                                                                   )
../subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c:731:7: note: add parentheses around left hand side expression to silence this warning
  if (!gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
      ^
      (                                             )
1 error generated.
```
sys/msdk/gstmsdkdec.c