mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
parent
0c69867d52
commit
443b3c98fa
2 changed files with 6 additions and 6 deletions
|
@ -165,7 +165,7 @@ gst_msdk_system_memory_new (GstAllocator * base_allocator)
|
||||||
GST_VIDEO_INFO_SIZE (vip));
|
GST_VIDEO_INFO_SIZE (vip));
|
||||||
|
|
||||||
if (!ensure_data (mem))
|
if (!ensure_data (mem))
|
||||||
return FALSE;
|
return NULL;
|
||||||
|
|
||||||
return GST_MEMORY_CAST (mem);
|
return GST_MEMORY_CAST (mem);
|
||||||
}
|
}
|
||||||
|
@ -180,13 +180,13 @@ gst_msdk_system_memory_map_full (GstMemory * base_mem, GstMapInfo * info,
|
||||||
|
|
||||||
if (!mem->surface) {
|
if (!mem->surface) {
|
||||||
GST_WARNING ("The surface is not allocated");
|
GST_WARNING ("The surface is not allocated");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((info->flags & GST_MAP_WRITE) && mem->surface
|
if ((info->flags & GST_MAP_WRITE) && mem->surface
|
||||||
&& mem->surface->Data.Locked) {
|
&& mem->surface->Data.Locked) {
|
||||||
GST_WARNING ("The surface in memory %p is not still avaliable", mem);
|
GST_WARNING ("The surface in memory %p is not still avaliable", mem);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mem->surface->Data.Y;
|
return mem->surface->Data.Y;
|
||||||
|
|
|
@ -114,7 +114,7 @@ gst_msdk_video_memory_new (GstAllocator * base_allocator)
|
||||||
|
|
||||||
mem->surface = gst_msdk_video_allocator_get_surface (base_allocator);
|
mem->surface = gst_msdk_video_allocator_get_surface (base_allocator);
|
||||||
if (!mem->surface)
|
if (!mem->surface)
|
||||||
return FALSE;
|
return NULL;
|
||||||
|
|
||||||
vip = &allocator->image_info;
|
vip = &allocator->image_info;
|
||||||
gst_memory_init (&mem->parent_instance, GST_MEMORY_FLAG_NO_SHARE,
|
gst_memory_init (&mem->parent_instance, GST_MEMORY_FLAG_NO_SHARE,
|
||||||
|
@ -228,13 +228,13 @@ gst_msdk_video_memory_map_full (GstMemory * base_mem, GstMapInfo * info,
|
||||||
|
|
||||||
if (!mem->surface) {
|
if (!mem->surface) {
|
||||||
GST_WARNING ("The surface is not allocated");
|
GST_WARNING ("The surface is not allocated");
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((info->flags & GST_MAP_WRITE) && mem->surface
|
if ((info->flags & GST_MAP_WRITE) && mem->surface
|
||||||
&& mem->surface->Data.Locked) {
|
&& mem->surface->Data.Locked) {
|
||||||
GST_WARNING ("The surface in memory %p is not still avaliable", mem);
|
GST_WARNING ("The surface in memory %p is not still avaliable", mem);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_msdk_frame_lock (msdk_video_allocator->context, mem->surface->Data.MemId,
|
gst_msdk_frame_lock (msdk_video_allocator->context, mem->surface->Data.MemId,
|
||||||
|
|
Loading…
Reference in a new issue