Skip to content

appsink: Drop last buffer reference on NULL state

Currently when using a buffer pool with an appsink, all allocated GstMemory are kept until the pipeline is destroyed, instead of freeing them on NULL state.

This is caused by priv->sample holding reference to the latest buffer. Better handle priv->sample in start/stop instead of init/dispose.

Merge request reports

Loading