0006-dont-invoke-USE_BUFFER-if-no-dmabuffer.patch 474 B

12345678910111213141516171819
  1. --- a/omx/gstomxvideodec.c
  2. +++ b/omx/gstomxvideodec.c
  3. @@ -718,6 +718,15 @@
  4. goto out;
  5. }
  6. +#ifdef USE_OMX_TARGET_STARFIVE
  7. + if ( !gst_is_dmabuf_memory (mem)) {
  8. + GST_INFO_OBJECT (self,
  9. + " %d-th buffer doesn't contain dmabuf, go to out. port->port_def.nBufferSize: %lu",
  10. + i, port->port_def.nBufferSize);
  11. + goto out;
  12. + }
  13. +#endif
  14. +
  15. *frame = g_slice_new0 (GstVideoFrame);
  16. is_mapped = gst_video_frame_map (*frame, v_info, buffer, flags);