From d7606a766708b95c7418ab6fc55f8a562916dd6e Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 9 Jan 2019 09:49:16 +0800 Subject: [PATCH] msdkenc: return NULL instead of FALSE The returned type is a pointer --- sys/msdk/gstmsdkenc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 6f90249213..51899047fd 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -901,7 +901,7 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps, if (!gst_video_info_from_caps (&info, caps)) { GST_INFO_OBJECT (thiz, "failed to get video info"); - return FALSE; + return NULL; } gst_msdk_set_video_alignment (&info, &align); @@ -947,20 +947,20 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps, error_no_pool: { GST_INFO_OBJECT (thiz, "failed to create bufferpool"); - return FALSE; + return NULL; } error_no_allocator: { GST_INFO_OBJECT (thiz, "failed to create allocator"); gst_object_unref (pool); - return FALSE; + return NULL; } error_pool_config: { GST_INFO_OBJECT (thiz, "failed to set config"); gst_object_unref (pool); gst_object_unref (allocator); - return FALSE; + return NULL; } }