mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
msdkenc: return NULL instead of FALSE
The returned type is a pointer
This commit is contained in:
parent
ba7f4de298
commit
d7606a7667
1 changed files with 4 additions and 4 deletions
|
@ -901,7 +901,7 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps,
|
||||||
|
|
||||||
if (!gst_video_info_from_caps (&info, caps)) {
|
if (!gst_video_info_from_caps (&info, caps)) {
|
||||||
GST_INFO_OBJECT (thiz, "failed to get video info");
|
GST_INFO_OBJECT (thiz, "failed to get video info");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_msdk_set_video_alignment (&info, &align);
|
gst_msdk_set_video_alignment (&info, &align);
|
||||||
|
@ -947,20 +947,20 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps,
|
||||||
error_no_pool:
|
error_no_pool:
|
||||||
{
|
{
|
||||||
GST_INFO_OBJECT (thiz, "failed to create bufferpool");
|
GST_INFO_OBJECT (thiz, "failed to create bufferpool");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
error_no_allocator:
|
error_no_allocator:
|
||||||
{
|
{
|
||||||
GST_INFO_OBJECT (thiz, "failed to create allocator");
|
GST_INFO_OBJECT (thiz, "failed to create allocator");
|
||||||
gst_object_unref (pool);
|
gst_object_unref (pool);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
error_pool_config:
|
error_pool_config:
|
||||||
{
|
{
|
||||||
GST_INFO_OBJECT (thiz, "failed to set config");
|
GST_INFO_OBJECT (thiz, "failed to set config");
|
||||||
gst_object_unref (pool);
|
gst_object_unref (pool);
|
||||||
gst_object_unref (allocator);
|
gst_object_unref (allocator);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue