133
133
/* FIXME: linking is still way too expensive, profile this properly */
134
134
GST_DEBUG ("linking src->csp");
135
135
if (!gst_element_link_pads (src, "src", csp, "sink"))
138
138
GST_DEBUG ("linking csp->filter1");
139
139
if (!gst_element_link_pads (csp, "src", filter1, "sink"))
142
142
GST_DEBUG ("linking filter1->vscale");
143
143
if (!gst_element_link_pads (filter1, "src", vscale, "sink"))
146
146
GST_DEBUG ("linking vscale->capsfilter");
147
147
if (!gst_element_link_pads (vscale, "src", filter2, "sink"))
150
150
GST_DEBUG ("linking capsfilter->sink");
151
151
if (!gst_element_link_pads (filter2, "src", sink, "sink"))
154
154
GST_DEBUG ("running conversion pipeline");
155
155
gst_element_set_state (pipeline, GST_STATE_PLAYING);