mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue