diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/playondemand/demo-mp3.c | 6 | ||||
-rw-r--r-- | gst/speed/demo-mp3.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gst/playondemand/demo-mp3.c b/gst/playondemand/demo-mp3.c index f2cab728..af5df0a4 100644 --- a/gst/playondemand/demo-mp3.c +++ b/gst/playondemand/demo-mp3.c @@ -42,9 +42,9 @@ int main(int argc, char **argv) gst_bin_add(GST_BIN(pipeline), pod); gst_bin_add(GST_BIN(pipeline), osssink); - gst_element_connect(src, "src", mad, "sink"); - gst_element_connect(pod, "src", osssink, "sink"); - gst_element_connect(mad, "src", pod, "sink"); + gst_element_connect(src, mad); + gst_element_connect(pod, osssink); + gst_element_connect(mad, pod); gst_element_set_state(pipeline, GST_STATE_PLAYING); diff --git a/gst/speed/demo-mp3.c b/gst/speed/demo-mp3.c index d4e19489..586ac9f1 100644 --- a/gst/speed/demo-mp3.c +++ b/gst/speed/demo-mp3.c @@ -52,10 +52,10 @@ int main(int argc, char **argv) gst_bin_add(GST_BIN(pipeline), stereo2mono); gst_bin_add(GST_BIN(pipeline), speed); gst_bin_add(GST_BIN(pipeline), osssink); - gst_element_connect(filesrc, "src", mad, "sink"); - gst_element_connect(mad, "src", stereo2mono, "sink"); - gst_element_connect(stereo2mono, "src", speed, "sink"); - gst_element_connect(speed, "src", osssink, "sink"); + gst_element_connect(filesrc, mad); + gst_element_connect(mad, stereo2mono); + gst_element_connect(stereo2mono, speed); + gst_element_connect(speed, osssink); gtk_object_set(GTK_OBJECT(filesrc), "location", argv[1], NULL); gst_element_set_state(pipeline, GST_STATE_PLAYING); |