omxvideodec: Deactivate negotiated pool when output own buffer

If decoder outputs internal buffer and not use OMX_UseBuffer,
downstream bufferpool should be stopped.
This commit is contained in:
Shinya Saito 2019-03-05 16:57:40 +09:00
parent 5d8d478ff8
commit a7ecda85b6

View file

@ -1170,6 +1170,8 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
GST_INFO_OBJECT (self, "Failed to activate internal pool");
gst_object_unref (self->out_port_pool);
self->out_port_pool = NULL;
} else if (!self->use_buffers) {
gst_buffer_pool_set_active (pool, FALSE);
}
} else if (self->out_port_pool) {
gst_object_unref (self->out_port_pool);