omxvideodec: pass a GstOMXBufferMode to gst_omx_buffer_pool_new()

The output_mode is supposed to be a GstOMXBufferMode, not a boolean.
This commit is contained in:
Guillaume Desmottes 2018-03-21 13:52:23 +01:00
parent 787a2c3203
commit f706f3b73b

View file

@ -770,7 +770,8 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
if (caps)
self->out_port_pool =
gst_omx_buffer_pool_new (GST_ELEMENT_CAST (self), self->dec, port,
self->dmabuf);
self->dmabuf ? GST_OMX_BUFFER_MODE_DMABUF :
GST_OMX_BUFFER_MODE_SYSTEM_MEMORY);
#if defined (HAVE_GST_GL)
if (eglimage) {