PD#SWPL-28377
Problem:
after update media_module to 0616 version, the gst over v4l2
playback is not working.
Solution:
the wrong of configuration of the output buffer mode that
caused allocate buffer failed.
Verify:
w200
Change-Id: I4adf8f082e7b67b495280894408b0363bdaeb190
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
//rb->count = ctx->dpb_size;
}
} else {
- if (rb->memory == VB2_MEMORY_DMABUF) {
- v4l_dbg(ctx, V4L_DEBUG_CODEC_INPUT,
- "%s, output_dma_mode set", __func__);
- ctx->output_dma_mode = true;
- }
+ ctx->output_dma_mode =
+ (rb->memory == VB2_MEMORY_DMABUF) ? 1 : 0;
+
+ v4l_dbg(ctx, V4L_DEBUG_CODEC_INPUT,
+ "output buffer memory mode is %d\n", rb->memory);
}
return v4l2_m2m_ioctl_reqbufs(file, priv, rb);