MMFMWK-7970 [8qxp] g2d support VPU tiled format.
Remove DRM modifier meta after use.
Signed-off-by: Song Bing <bing.song@nxp.com>
diff --git a/plugins/videoconvert/gstimxvideoconvert.c b/plugins/videoconvert/gstimxvideoconvert.c
index 62a2a66..c883cb3 100755
--- a/plugins/videoconvert/gstimxvideoconvert.c
+++ b/plugins/videoconvert/gstimxvideoconvert.c
@@ -1359,8 +1359,15 @@
src.info.stride = in->info.stride[0];
dmabuf_meta = gst_buffer_get_dmabuf_meta (in->buffer);
- if (dmabuf_meta)
+ if (dmabuf_meta) {
drm_modifier = dmabuf_meta->drm_modifier;
+ dmabuf_meta->drm_modifier = 0;
+ }
+
+ dmabuf_meta = gst_buffer_get_dmabuf_meta (out->buffer);
+ if (dmabuf_meta) {
+ dmabuf_meta->drm_modifier = 0;
+ }
GST_INFO_OBJECT (imxvct, "buffer modifier type %d", drm_modifier);