omxvideodec: pass a GstOMXBufferMode to gst_omx_buffer_pool_new()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 21 Mar 2018 12:52:23 +0000 (13:52 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 4 May 2018 11:20:55 +0000 (13:20 +0200)
The output_mode is supposed to be a GstOMXBufferMode, not a boolean.

omx/gstomxvideodec.c

index 812eb29..29b8fce 100644 (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) {