gst_element_factory_make return null

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

gst_element_factory_make return null

Aaron
This post was updated on .
Hi,all

     I have ported the gstreamer to the ics.now i have a test file ,use the gst_element_factory_make("h264parse","parse"),the function return null and the gst_element_factory_find  too ,but  gst_inspect can find the plugin and use the same plugin   the gst-launch  run well. so what does the functioin rely to?

    Thank you!

    Aaron
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make return null

Peteris Krisjanis-2
2012/7/10 Aaron <[hidden email]>:
> Hi,all
>
>      I have ported the gstreamer to the ics.now i have a test file ,use the
> gst_element_factory_make("h264parse","parse"),the function return null,but
> gst_inspect can find the plugin and use the same plugin   the gst-launch
> run well. so what does the functioin rely to?

Didn't forgot to run gst_init?

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

Re: gst_element_factory_make return null

Tim-Philipp Müller-2
In reply to this post by Aaron
On Tue, 2012-07-10 at 03:20 -0700, Aaron wrote:

Hi,

>      I have ported the gstreamer to the ics.now i have a test file ,use the
> gst_element_factory_make("h264parse","parse"),the function return null,but
> gst_inspect can find the plugin and use the same plugin   the gst-launch
> run well. so what does the functioin rely to?

Do you call gst_init in your application?

Cheers
 -Tim

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

Re: gst_element_factory_make return null

Aaron
This post was updated on .
Hi,
   
   I have called the gst_init()  and some plugins  can be make right. eg,  filesrc,filesink and queue.but other plugin which not belong to libgstcoreelement.so  can be make out.

Aaron