summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2018-03-13 14:18:23 -0800
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-03-13 14:18:23 -0800
commit443b3c98fa70adce242aa2e02c6819cedc39ff5d (patch)
tree1f8365d0619c46968bcfd7f2ab4ab0213a2f10d9
parent0c69867d523a560c6ca55afdb2880a62abcab632 (diff)
msdk: fix typo
https://bugzilla.gnome.org/show_bug.cgi?id=794276
-rw-r--r--sys/msdk/gstmsdksystemmemory.c6
-rw-r--r--sys/msdk/gstmsdkvideomemory.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/msdk/gstmsdksystemmemory.c b/sys/msdk/gstmsdksystemmemory.c
index a7636c546..b81307322 100644
--- a/sys/msdk/gstmsdksystemmemory.c
+++ b/sys/msdk/gstmsdksystemmemory.c
@@ -165,7 +165,7 @@ gst_msdk_system_memory_new (GstAllocator * base_allocator)
GST_VIDEO_INFO_SIZE (vip));
if (!ensure_data (mem))
- return FALSE;
+ return NULL;
return GST_MEMORY_CAST (mem);
}
@@ -180,13 +180,13 @@ gst_msdk_system_memory_map_full (GstMemory * base_mem, GstMapInfo * info,
if (!mem->surface) {
GST_WARNING ("The surface is not allocated");
- return FALSE;
+ return NULL;
}
if ((info->flags & GST_MAP_WRITE) && mem->surface
&& mem->surface->Data.Locked) {
GST_WARNING ("The surface in memory %p is not still avaliable", mem);
- return FALSE;
+ return NULL;
}
return mem->surface->Data.Y;
diff --git a/sys/msdk/gstmsdkvideomemory.c b/sys/msdk/gstmsdkvideomemory.c
index ab02ab9d7..ced7c96d1 100644
--- a/sys/msdk/gstmsdkvideomemory.c
+++ b/sys/msdk/gstmsdkvideomemory.c
@@ -114,7 +114,7 @@ gst_msdk_video_memory_new (GstAllocator * base_allocator)
mem->surface = gst_msdk_video_allocator_get_surface (base_allocator);
if (!mem->surface)
- return FALSE;
+ return NULL;
vip = &allocator->image_info;
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) {
GST_WARNING ("The surface is not allocated");
- return FALSE;
+ return NULL;
}
if ((info->flags & GST_MAP_WRITE) && mem->surface
&& mem->surface->Data.Locked) {
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,