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.
This commit is contained in:
Xiang, Haihao 2018-11-16 14:18:36 +08:00 committed by Víctor Manuel Jáquez Leal
parent 54451b7303
commit dc070a8306

View file

@ -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];