summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinhang Liu <yinhang.liu@intel.com>2023-05-12 15:22:41 +0800
committerYinhang Liu <yinhang.liu@intel.com>2023-05-12 15:38:08 +0800
commitf04a1eee715211798fe51d17b2e5a01381cb5fc8 (patch)
treec20acf2490423a919143a9ad3dcd067b67341960
parentb10ec569d74f65568d365543fa441eb33304889f (diff)
downloadgstreamer-f04a1eee715211798fe51d17b2e5a01381cb5fc8.tar.gz
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>
-rw-r--r--subprojects/gst-plugins-base/gst-libs/gst/video/video-info-dma.c4
1 files 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 ();