problem with gst_parse_launch

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

problem with gst_parse_launch

padam
Hi,
Following pipe is working on gst-launch.exe
gst-launch gnlfilesource location=file:///D:\\file.avi caps=video/x-raw-yuv media-start=1000000000 duration=5000000000 media-duration=5000000000 ! decodebin ! ffmpegcolorspace ! autovideosink

but on gst_parse_launch it didn't

pipeline = gst_parse_launch("gnlfilesource location=file:///D:\\file.avi caps=video/x-raw-yuv media-start=1000000000 duration=5000000000 media-duration=5000000000 ! decodebin ! ffmpegcolorspace ! autovideosink", &error);

pipeline is NULL. Nothing were created.

But i can do that:

GstElement *gnl;
gnl = gst_element_factory_make("gnlfilesource", "gnlsource");

so gstreamer "see" gnlfilesource.
How it could be? Thanks for help.
Reply | Threaded
Open this post in threaded view
|

Re: problem with gst_parse_launch

padam
Ok, my fault. I used GError, but i didn't set it to NULL