<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font face="Lucida Grande">Hi,</font><div><font face="Lucida Grande"><br></font></div><div><font face="Lucida Grande">I'm trying to add a vertigotv filter between videotestsrc and autovideosink like follows :</font></div><div><font face="Lucida Grande"><br></font></div><div><div><font face="Lucida Grande">GstElement *pipeline, *source, *sink, *filter;</font></div><div><font face="Lucida Grande"> </font></div><div><font face="Lucida Grande"> </font></div><div><font face="Lucida Grande"> </font><span style="font-family: 'Lucida Grande'; ">source = gst_element_factory_make ("videotestsrc", "source");</span></div><div><font face="Lucida Grande"> sink = gst_element_factory_make ("autovideosink", "sink");</font></div><div><font face="Lucida Grande"> filter = gst_element_factory_make("vertigotv", "filter");</font></div><div><font face="Lucida Grande"> </font></div><div><font face="Lucida Grande"> pipeline = gst_pipeline_new ("test-pipeline");</font></div><div><font face="Lucida Grande"> </font></div><div><font face="Lucida Grande"> if (!pipeline || !source || !sink) {</font></div><div><font face="Lucida Grande"> g_printerr ("Not all elements could be created.\n");</font></div><div><font face="Lucida Grande"> return -1;</font></div><div><font face="Lucida Grande"> }</font></div><div><font face="Lucida Grande"> </font></div><div><font face="Lucida Grande"> /* Build the pipeline */</font></div><div><font face="Lucida Grande"> </font>gst_bin_add_many (GST_BIN (pipeline), source, filter, sink, NULL);</div><div> if (((gst_element_link (source, filter)) && (gst_element_link (filter, sink))) != TRUE) {</div><div> g_printerr ("Elements could not be linked.\n");</div><div> gst_object_unref (pipeline);</div><div> return -1;</div><div> }</div></div><div><br></div><div>But when it stops with following message :</div><div><br></div><div>"Unable to set the pipeline to the playing state"</div><div><br></div><div><br></div><div>Another thing is how should i debug this kind of scenario to find out what actually went wrong?</div></body></html>