【发布时间】:2021-08-23 13:35:15
【问题描述】:
您好,我正在尝试从静态垫模板创建流光垫。
到目前为止,
- 我创建了一个具有正确元素名称的接收器工厂
sink_factory = gst_element_factory_find("elementName"); - 我已检索到静态垫模板列表(来自
gst_element_factory_get_static_pad_templates),根据方向和存在我从列表中找到垫(静态模板)并保存在变量中(GstStaticPadTemplate *padtemplate)李>
现在我想从静态pad模板创建一个pad模板,我找到了这个功能
GstPadTemplate *
gst_pad_template_new_from_static_pad_template_with_gtype (GstStaticPadTemplate * pad_template,
GType pad_type)
我打算与gst_element_request_pad 一起使用,如下所示
GstPad *
gst_element_request_pad (GstElement * element,
GstPadTemplate * templ,
const gchar * name,
const GstCaps * caps)
我的问题是我不确定如何处理 GType pad_type。我找不到任何应用程序来解决这个问题。
干杯, 甘宁都。
附言
我知道gst_element_request_pad_simple 和gst_element_get_request_pad
【问题讨论】:
标签: c gstreamer gstreamer-1.0