mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
video-info: Don't crash in gst_video_info_is_equal() if one videoinfo is zero-initialized
Instead handle it like gst_audio_info_is_equal() and consider both different. And also add a shortcut for the pointers to both infos being equal. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7055>
This commit is contained in:
parent
a4a21feb87
commit
9da1268656
1 changed files with 4 additions and 0 deletions
|
@ -605,6 +605,10 @@ gst_video_info_is_equal (const GstVideoInfo * info, const GstVideoInfo * other)
|
|||
{
|
||||
gint i;
|
||||
|
||||
if (info == other)
|
||||
return TRUE;
|
||||
if (info->finfo == NULL || other->finfo == NULL)
|
||||
return FALSE;
|
||||
if (GST_VIDEO_INFO_FORMAT (info) != GST_VIDEO_INFO_FORMAT (other))
|
||||
return FALSE;
|
||||
if (GST_VIDEO_INFO_INTERLACE_MODE (info) !=
|
||||
|
|
Loading…
Reference in a new issue