if (!strcmp (gst_pad_get_name (newpad), "video_00")) {
gst_element_set_state (pipeline, GST_STATE_PAUSED);
- gst_pad_connect (newpad, gst_element_get_pad (queue, "sink"));
+ gst_pad_link (newpad, gst_element_get_pad (queue, "sink"));
gst_element_set_state (pipeline, GST_STATE_PLAYING);
}
}
gst_bin_add (GST_BIN (thread), xvideosink);
gst_bin_add (GST_BIN (pipeline), thread);
- gst_element_connect (filesrc, "src", demux, "sink");
- gst_element_connect (queue, "src", mpeg2dec, "sink");
- gst_element_connect (mpeg2dec, "src", colorspace, "sink");
+ gst_element_link (filesrc, "src", demux, "sink");
+ gst_element_link (queue, "src", mpeg2dec, "sink");
+ gst_element_link (mpeg2dec, "src", colorspace, "sink");
/* force RGB data passing between colorspace and xvideosink */
- res = gst_element_connect_filtered (colorspace, "src", xvideosink, "sink",
+ res = gst_element_link_filtered (colorspace, "src", xvideosink, "sink",
GST_CAPS_NEW (
"filtercaps",
"video/raw",
gst_bin_add(GST_BIN(bin),GST_ELEMENT(src));
gst_bin_add(GST_BIN(bin),GST_ELEMENT(spectrum));
- gst_pad_connect(gst_element_get_pad(src,"src"),
+ gst_pad_link(gst_element_get_pad(src,"src"),
gst_element_get_pad(spectrum,"sink"));
spectrumpad = gst_pad_new("sink",GST_PAD_SINK);
gst_pad_set_chain_function(spectrumpad,spectrum_chain);
- gst_pad_connect(gst_element_get_pad(spectrum,"src"),spectrumpad);
+ gst_pad_link(gst_element_get_pad(spectrum,"src"),spectrumpad);
appwindow = gnome_app_new("spectrum","Spectrum");
drawingarea = gtk_drawing_area_new();