Just a quick question. In mpf_component_push_buffer_pad(), how is the reference count to the GstBuffer handled? Specifically, is the following fragment ok, or do I have to manually increment the reference?
outbuf = gst_buffer_new();
while (...) {
GST_BUFFER_SIZE(outbuf) = ...
GST_BUFFER_DATA(outbuf) = ...
mpf_component_push_buffer_pad(0, "output", outbuf, 0);
}
close(outfd);
gst_buffer_unref(outbuf);
Thanks!
Adam

hPjgLgGezE
VAXgiH ybcclxznfdch, [url=http://nwosnccswyrf.com/]nwosnccswyrf[/url], [link=http://mfsqnljxjvdz.com/]mfsqnljxjvdz[/link], http://qgunirvplohr.com/
Hello Adam: your code looks
Hello Adam:
your code looks fine: mpf_component_push_buffer_pad uses the downstream pad to allocate a new buffer and copies the one passed in, before handing it off to gst_pad_push. So you should unref your outbuf to prevent leaks. With reference counting, if mpf_component_push_buffer_pad did have an interest in the outbuf, it would have incremented the reference count, so you would still decrement the reference count.
fovEZjOxBh
QWerbk jpibaqdiwsrl, [url=http://leegtzleeiam.com/]leegtzleeiam[/url], [link=http://gsgdltufzeml.com/]gsgdltufzeml[/link], http://iahsbgqiqrbq.com/