video: video-info-dma: Fix return value
The return value of gst_video_info_dma_drm_new_from_caps is a pointer type, and should not return a boolean type. Fix this issue. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4612>
This commit is contained in:
parent
b10ec569d7
commit
f04a1eee71
@ -383,10 +383,10 @@ gst_video_info_dma_drm_new_from_caps (const GstCaps * caps)
|
|||||||
{
|
{
|
||||||
GstVideoInfoDmaDrm *ret;
|
GstVideoInfoDmaDrm *ret;
|
||||||
|
|
||||||
g_return_val_if_fail (caps != NULL, FALSE);
|
g_return_val_if_fail (caps != NULL, NULL);
|
||||||
|
|
||||||
if (!gst_video_is_dma_drm_caps (caps))
|
if (!gst_video_is_dma_drm_caps (caps))
|
||||||
return FALSE;
|
return NULL;
|
||||||
|
|
||||||
ret = gst_video_info_dma_drm_new ();
|
ret = gst_video_info_dma_drm_new ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user