set caps in C problem

Sérgio Agostinho sergio.r.agostinho at gmail.com
Sun Dec 28 04:59:25 PST 2014


You forgot to add the caps filter to the pipeline. 

Cheers

> On 28 Dec 2014, at 12:37, Forzaferrarileo <leonardo.ferroro at gmail.com> wrote:
> 
> Ty , but now i have another problem :
> 
> GStreamer-WARNING **: Trying to connect elements that don't share a common
> ancestor: source and caps
> 
>  source = gst_element_factory_make ("videotestsrc", "source");
>  capsfilter = gst_element_factory_make("capsfilter", "caps");
>  convert = gst_element_factory_make ("videoconvert", "convert");
>  sink = gst_element_factory_make ("autovideosink","sink");
> 
> g_object_set(capsfilter, "caps", gst_caps_new_simple("video/x-raw",
>        "width", G_TYPE_INT, 1280,
>        "height", G_TYPE_INT, 720, NULL), NULL);
> 
>  pipeline = gst_pipeline_new ("test-pipeline");
> 
>  gst_bin_add_many (GST_BIN (pipeline), source, convert, sink, NULL);
> 
>  gst_element_link(source,capsfilter);
>  gst_element_link(capsfilter,convert);
>  gst_element_link(convert,sink);
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/set-caps-in-C-problem-tp4670021p4670024.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list