Skip to content

Unable to unref some basic types from GStreamer #384

@xenobytezero

Description

@xenobytezero

While diagnosing a memory leak in my GStreamer app, I found the documentation of gst_app_sink_pull_sample notes that the resulting sample is a transfer:full response, and that we need to call gst_sample_unref to clean it up.

https://gstreamer.freedesktop.org/documentation/applib/gstappsink.html?gi-language=c#gst_app_sink_pull_sample

It doesn't seem like there is a way to call this unref() function. It doesnt exist in the typings provided by @girs/node-gst-1.0 or by casting the class to any and then directly calling the function on Gst.Sample.unref()

This is also true for a few classes that have a similar pattern (Gst.Buffer, Gst.Memory and Gst.Caps)

Since this isnt generated for the typings and doesnt seem to be recognised by node-gtk at all, this says to me that I'm missing something here.

Is there a way to call this function either directly or by manipulating the reference using GObject functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions