glimagesink: Fix VUYA in memory:DMABuf

Sample pipeline:
gst-launch-1.0 videotestsrc ! msdkvpp ! \
video/x-raw\(memory:DMABuf\),format=VUYA ! glimagesink
This commit is contained in:
Haihao Xiang 2019-09-16 11:03:59 +08:00
parent e5d06b24b7
commit 14ce1ccdd2

View file

@ -496,6 +496,7 @@ _drm_rgba_fourcc_from_info (GstVideoInfo * info, int plane,
case GST_VIDEO_FORMAT_ABGR:
case GST_VIDEO_FORMAT_xBGR:
case GST_VIDEO_FORMAT_AYUV:
case GST_VIDEO_FORMAT_VUYA:
*out_format = GST_GL_RGBA;
return rgba_fourcc;
@ -637,6 +638,7 @@ _drm_direct_fourcc_from_info (GstVideoInfo * info)
return DRM_FORMAT_VYUY;
case GST_VIDEO_FORMAT_AYUV:
case GST_VIDEO_FORMAT_VUYA:
return DRM_FORMAT_AYUV;
case GST_VIDEO_FORMAT_NV12: