summaryrefslogtreecommitdiff
path: root/sys/msdk
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2018-11-16 14:18:36 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-11-26 16:47:17 +0000
commitdc070a8306abade0d7efd8d4476eec21f973ff48 (patch)
tree1cf9b4e200304f00cdb4affa3fcd9711657345aa /sys/msdk
parent54451b730320564989d80a2bf3a425d29ccfbc53 (diff)
downloadgstreamer-plugins-bad-dc070a8306abade0d7efd8d4476eec21f973ff48.tar.gz
msdk: make sure the surface data is set for GST_VIDEO_FORMAT_P010_10LE
P010_10LE and NV12 have the same layout, so we may reuse the code.
Diffstat (limited to 'sys/msdk')
-rw-r--r--sys/msdk/gstmsdksystemmemory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdksystemmemory.c b/sys/msdk/gstmsdksystemmemory.c
index 54ee2ae00..69d366208 100644
--- a/sys/msdk/gstmsdksystemmemory.c
+++ b/sys/msdk/gstmsdksystemmemory.c
@@ -78,6 +78,7 @@ ensure_data (GstMsdkSystemMemory * mem)
switch (GST_VIDEO_INFO_FORMAT (info)) {
case GST_VIDEO_FORMAT_NV12:
+ case GST_VIDEO_FORMAT_P010_10LE:
mem->surface->Data.Y = mem->cached_data[0];
mem->surface->Data.UV = mem->cached_data[1];
mem->surface->Data.Pitch = mem->destination_pitches[0];