mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +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/7059>
This commit is contained in:
parent
ef5fe0b33b
commit
460b883003
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