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:
Yinhang Liu 2023-05-12 15:22:41 +08:00
parent b10ec569d7
commit f04a1eee71

View file

@ -383,10 +383,10 @@ gst_video_info_dma_drm_new_from_caps (const GstCaps * caps)
{
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))
return FALSE;
return NULL;
ret = gst_video_info_dma_drm_new ();