From: Haihao Xiang Date: Tue, 21 Jan 2020 07:14:08 +0000 (+0800) Subject: msdk: Fix compiler warning X-Git-Tag: 1.19.3~507^2~2388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3ebebc20bceaaa25ebf240915a4d6bb49d3a71e;p=platform%2Fupstream%2Fgstreamer.git msdk: Fix compiler warning This patch fixed compiler warning below: [1/4] Compiling C object 'sys/msdk/dc44ea0@@gstmsdk@sha/gstmsdkvpp.c.o'. ../../gst-plugins-bad/sys/msdk/gstmsdkvpp.c: In function ‘gst_msdkvpp_context_prepare’: ../../gst-plugins-bad/sys/msdk/gstmsdkvpp.c:214:7: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Wparentheses] --- diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 4a761d0..7cb5610 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -1620,8 +1620,8 @@ gst_msdkenc_context_prepare (GstMsdkEnc * thiz) * gst-launch-1.0 videotestsrc ! video/x-raw,format=I420 ! msdkh264enc ! \ * msdkh264dec ! msdkvpp ! video/x-raw,format=YUY2 ! fakesink */ - if (!gst_msdk_context_get_job_type (thiz->context) & (GST_MSDK_JOB_VPP | - GST_MSDK_JOB_ENCODER)) { + if (!(gst_msdk_context_get_job_type (thiz->context) & (GST_MSDK_JOB_VPP | + GST_MSDK_JOB_ENCODER))) { gst_msdk_context_add_job_type (thiz->context, GST_MSDK_JOB_ENCODER); return TRUE; } diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index dce4934..3a11519 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -211,8 +211,8 @@ gst_msdkvpp_context_prepare (GstMsdkVPP * thiz) * Example: * gst-launch-1.0 videotestsrc ! msdkvpp ! video/x-raw,format=YUY2 ! msdkh264enc ! fakesink */ - if (!gst_msdk_context_get_job_type (thiz->context) & (GST_MSDK_JOB_VPP | - GST_MSDK_JOB_ENCODER)) { + if (!(gst_msdk_context_get_job_type (thiz->context) & (GST_MSDK_JOB_VPP | + GST_MSDK_JOB_ENCODER))) { gst_msdk_context_add_job_type (thiz->context, GST_MSDK_JOB_VPP); return TRUE; }