mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
encodebin: don't access GstElementFactory structure directly
This commit is contained in:
parent
1805273cc5
commit
1c77a3d801
1 changed files with 2 additions and 1 deletions
|
@ -1496,8 +1496,9 @@ static gboolean
|
|||
_factory_can_handle_caps (GstElementFactory * factory, const GstCaps * caps,
|
||||
GstPadDirection dir, gboolean exact)
|
||||
{
|
||||
GList *templates = factory->staticpadtemplates;
|
||||
const GList *templates;
|
||||
|
||||
templates = gst_element_factory_get_static_pad_templates (factory);
|
||||
while (templates) {
|
||||
GstStaticPadTemplate *template = (GstStaticPadTemplate *) templates->data;
|
||||
|
||||
|
|
Loading…
Reference in a new issue