mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
vaapivideomemory: fail if frame map can't get plane
If map() vmethod in GstVideMeta cannot get the plane data, return false, thus the caller will not try to read invalid memory. https://bugzilla.gnome.org/show_bug.cgi?id=774213
This commit is contained in:
parent
3fa9af225f
commit
a02c86b395
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ gst_video_meta_map_vaapi_memory (GstVideoMeta * meta, guint plane,
|
|||
*data = gst_vaapi_image_get_plane (mem->image, plane);
|
||||
*stride = gst_vaapi_image_get_pitch (mem->image, plane);
|
||||
info->flags = flags;
|
||||
ret = TRUE;
|
||||
ret = (*data != NULL);
|
||||
|
||||
out:
|
||||
g_mutex_unlock (&mem->lock);
|
||||
|
|
Loading…
Reference in a new issue