mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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]
This commit is contained in:
parent
7cc185bd86
commit
e3ebebc20b
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue