self->in_port = NULL;
self->out_port = NULL;
if (self->comp)
- gst_omx_component_free (self->comp);
+ gst_omx_component_unref (self->comp);
self->comp = NULL;
GST_DEBUG_OBJECT (self, "Closed audio sink");
GstOMXBuffer *buf = NULL;
while (!buf) {
- acq_ret = gst_omx_port_acquire_buffer (port, &buf);
+ acq_ret = gst_omx_port_acquire_buffer (port, &buf, GST_OMX_WAIT);
if (acq_ret == GST_OMX_ACQUIRE_BUFFER_ERROR) {
goto component_error;
} else if (acq_ret == GST_OMX_ACQUIRE_BUFFER_FLUSHING) {