From: Xiang, Haihao Date: Fri, 16 Nov 2018 06:18:36 +0000 (+0800) Subject: msdk: make sure the surface data is set for GST_VIDEO_FORMAT_P010_10LE X-Git-Tag: 1.19.3~507^2~3777 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc070a8306abade0d7efd8d4476eec21f973ff48;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/sys/msdk/gstmsdksystemmemory.c b/sys/msdk/gstmsdksystemmemory.c index 54ee2ae..69d3662 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];