mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
video: Safe guard info->finfo when mapping a frame
Not sure how that slept through but that case is possible and leads to segfaults in any code path of the function right now. https://bugzilla.gnome.org/show_bug.cgi?id=795436
This commit is contained in:
parent
59eacaa966
commit
b63fc21d22
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ gst_video_frame_map_id (GstVideoFrame * frame, GstVideoInfo * info,
|
|||
|
||||
g_return_val_if_fail (frame != NULL, FALSE);
|
||||
g_return_val_if_fail (info != NULL, FALSE);
|
||||
g_return_val_if_fail (info->finfo != NULL, FALSE);
|
||||
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
|
||||
|
||||
if (id == -1)
|
||||
|
|
Loading…
Reference in a new issue