Hi all,<br /><br />I am using gstreamer 1.2.4 and the function gst_bin_get_by_name always returns NULL when I pass a valid and working pipeline to it. <br />Here a code which I took from a gstreamer tutorial and modified a bit:<br /><br />gst_init (NULL, NULL);<br /><br />GstElement* pipeline = gst_parse_launch("videotestsrc ! xvimagesink", NULL);<br />GstElement* sink = gst_bin_get_by_name(GST_BIN(pipeline), "sink");<br />gst_element_set_state (pipeline, GST_STATE_PLAYING);<br /><br />GMainLoop *loop;<br />loop = g_main_loop_new (NULL, FALSE);<br />g_main_loop_run (loop);<br /><br />The code works and a test video is shown on a screen, but sink is NULL as also sinkpads and srcpads from the pipeline.<br />Why is that? How should I do it properly?