understanding "gst_element_factory_make"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

understanding "gst_element_factory_make"

Black_13
What does this statement do?

app->src = gst_element_factory_make ("appsrc", NULL);

James

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: understanding "gst_element_factory_make"

Nicolas Dufresne-5
Le lundi 12 mars 2018 à 11:14 -0500, blackthirt33n . a écrit :
> What does this statement do?
>
> app->src = gst_element_factory_make ("appsrc", NULL);

It will create a new element from factory name "appsrc". This is how we
allocate GstElement object, as their type is only known by the plugin
system we cannot just g_object_new() them.

>
> James
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment