From f04a1eee715211798fe51d17b2e5a01381cb5fc8 Mon Sep 17 00:00:00 2001 From: Yinhang Liu Date: Fri, 12 May 2023 15:22:41 +0800 Subject: [PATCH] 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: --- .../gst-plugins-base/gst-libs/gst/video/video-info-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.c b/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.c index 2ef04c8393..9587004167 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.c @@ -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 ();