From d7144e2476a2d4057c891aaf9dac2295d2a8741f Mon Sep 17 00:00:00 2001 From: RSWilli Date: Mon, 14 Aug 2023 11:49:57 +0200 Subject: [PATCH] add docs to NewElementWithProperties --- gst/gst_element_factory.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gst_element_factory.go b/gst/gst_element_factory.go index 32cb506..a36ad14 100644 --- a/gst/gst_element_factory.go +++ b/gst/gst_element_factory.go @@ -35,7 +35,8 @@ func NewElementWithName(factory string, name string) (*Element, error) { // Create a new element of the type defined by the given elementfactory. The supplied list of properties, will be passed at object construction. // -// using this results in a free() panic :( DO NOT USE +// this function is needed for gstreamer props that have the "Construct Only" flag, e.g.: +// https://gstreamer.freedesktop.org/documentation/audio/gstaudioaggregator.html?gi-language=c#GstAudioAggregator:force-live func NewElementWithProperties(factory string, properties map[string]interface{}) (*Element, error) { props := make([]*C.char, 0) values := make([]C.GValue, 0)