GST_DEBUG_OBJECT (visual, "allocating output buffer");
ret = gst_buffer_pool_acquire_buffer (visual->pool, &outbuf, NULL);
if (ret != GST_FLOW_OK) {
- gst_adapter_unmap (visual->adapter, 0);
+ gst_adapter_unmap (visual->adapter);
goto beach;
}
}
gst_buffer_unmap (outbuf, outdata, outsize);
GST_DEBUG_OBJECT (visual, "rendered one frame");
- gst_adapter_unmap (visual->adapter, 0);
+ gst_adapter_unmap (visual->adapter);
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
GST_BUFFER_DURATION (outbuf) = visual->duration;
bytes_consumed =
th_encode_ctl (enc->encoder, TH_ENCCTL_2PASS_IN, (guint8 *) cache_data,
bytes_read);
- gst_adapter_unmap (enc->multipass_cache_adapter, 0);
+ gst_adapter_unmap (enc->multipass_cache_adapter);
done = bytes_consumed <= 0;
if (bytes_consumed > 0)
if (G_LIKELY (buf)) {
gst_buffer_unref (buf);
- gst_adapter_unmap (priv->adapter, 0);
+ gst_adapter_unmap (priv->adapter);
}
/* no data to feed, no leftover provided, then bail out */
data = gst_adapter_map (this->adapter, this->payload_length);
res = gst_dp_validate_payload (GST_DP_HEADER_LENGTH, this->header,
data);
- gst_adapter_unmap (this->adapter, 0);
+ gst_adapter_unmap (this->adapter);
if (!res)
goto payload_validate_error;
if (input && consumed > 0) {
self->textbuf = g_string_append (self->textbuf, input);
- gst_adapter_unmap (self->adapter, consumed);
+ gst_adapter_unmap (self->adapter);
+ gst_adapter_flush (self->adapter, consumed);
} else {
- gst_adapter_unmap (self->adapter, 0);
+ gst_adapter_unmap (self->adapter);
}
g_free (input);