diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-01-09 09:49:16 +0800 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-02 11:57:13 +0100 |
commit | 2ecba3e7a905e1cdded117ed840374df483e5aae (patch) | |
tree | c8c6cf2f57a76150f3e3fc7d3a3e966adc712b30 | |
parent | 935b3db951c62b442ae4812e618f04ee95dfa19e (diff) | |
download | gstreamer-plugins-bad-2ecba3e7a905e1cdded117ed840374df483e5aae.tar.gz |
msdkenc: return NULL instead of FALSE
The returned type is a pointer
-rw-r--r-- | sys/msdk/gstmsdkenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 7eabd46d2..5130c383b 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -874,7 +874,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); @@ -913,20 +913,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; } } |