summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/play
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-01-10 10:22:25 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-01-10 10:22:25 +0000
commit424db0d3aea0ce26a35ba381b4e439f32e50c961 (patch)
treecf1e32dcea1deec9b9c8802af89b2cce9ac5b175 /gst-libs/gst/play
parent562e0b2526c75e98dfe790dba5fa50a0be0a95d3 (diff)
downloadgst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.tar.gz
gst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.tar.bz2
gst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.zip
another batch of connect->link fixes please let me know about issues and please refrain of making them yourself, so t...
Original commit message from CVS: another batch of connect->link fixes please let me know about issues and please refrain of making them yourself, so that I don't spend double the time resolving conflicts
Diffstat (limited to 'gst-libs/gst/play')
-rw-r--r--gst-libs/gst/play/playpipelines.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/gst-libs/gst/play/playpipelines.c b/gst-libs/gst/play/playpipelines.c
index dc04b011..67e4d5a6 100644
--- a/gst-libs/gst/play/playpipelines.c
+++ b/gst-libs/gst/play/playpipelines.c
@@ -65,7 +65,7 @@ gst_play_audio_setup (GstPlay *play, GError **error)
GST_BIN (play->pipeline), play->volume,
play->audio_sink, NULL);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
gst_bin_set_pre_iterate_function(
GST_BIN (play->pipeline),
@@ -126,7 +126,7 @@ gst_play_audiot_setup (GstPlay *play, GError **error)
GST_BIN (play->pipeline), play->volume,
play->audio_sink, NULL);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
gst_bin_set_pre_iterate_function(
GST_BIN (play->pipeline),
@@ -150,13 +150,13 @@ gst_play_audiot_set_audio (GstPlay *play, GstElement *audio_sink)
if (play->audio_sink)
{
- gst_element_disconnect (play->volume, play->audio_sink);
+ gst_element_unlink (play->volume, play->audio_sink);
gst_bin_remove (GST_BIN (play->pipeline), play->audio_sink);
}
play->audio_sink = audio_sink;
gst_bin_add (GST_BIN (play->pipeline), play->audio_sink);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
play->audio_sink_element = gst_play_get_sink_element (play, audio_sink);
@@ -178,8 +178,8 @@ gst_play_audiot_set_auto (GstPlay *play, GstElement *autoplugger)
if (play->autoplugger) {
/* we need to remove the existing autoplugger before creating a new one */
- gst_element_disconnect (play->autoplugger, play->volume);
- gst_element_disconnect (play->autoplugger, play->source);
+ gst_element_unlink (play->autoplugger, play->volume);
+ gst_element_unlink (play->autoplugger, play->source);
gst_bin_remove (GST_BIN (play->pipeline), play->autoplugger);
}
@@ -187,8 +187,8 @@ gst_play_audiot_set_auto (GstPlay *play, GstElement *autoplugger)
g_return_val_if_fail (play->autoplugger != NULL, FALSE);
gst_bin_add (GST_BIN (play->pipeline), play->autoplugger);
- gst_element_connect (play->source, play->autoplugger);
- gst_element_connect (play->autoplugger, play->volume);
+ gst_element_link (play->source, play->autoplugger);
+ gst_element_link (play->autoplugger, play->volume);
return TRUE;
}
@@ -260,7 +260,7 @@ gst_play_audioht_setup (GstPlay *play, GError **error)
GST_BIN (audio_thread), audio_queue, play->volume,
play->audio_sink, NULL);
- gst_element_connect_many (audio_queue, play->volume, play->audio_sink);
+ gst_element_link_many (audio_queue, play->volume, play->audio_sink);
gst_element_add_ghost_pad (
audio_thread, gst_element_get_pad (audio_queue, "sink"),
@@ -294,13 +294,13 @@ gst_play_audioht_set_audio (GstPlay *play, GstElement *audio_sink)
if (play->audio_sink)
{
- gst_element_disconnect (play->volume, play->audio_sink);
+ gst_element_unlink (play->volume, play->audio_sink);
gst_bin_remove (GST_BIN (audio_thread), play->audio_sink);
}
play->audio_sink = audio_sink;
gst_bin_add (GST_BIN (audio_thread), play->audio_sink);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
play->audio_sink_element = gst_play_get_sink_element (play, audio_sink);
@@ -325,8 +325,8 @@ gst_play_audioht_set_auto (GstPlay *play, GstElement *autoplugger)
if (play->autoplugger) {
/* we need to remove the existing autoplugger before creating a new one */
- gst_element_disconnect (play->autoplugger, audio_thread);
- gst_element_disconnect (play->autoplugger, play->source);
+ gst_element_unlink (play->autoplugger, audio_thread);
+ gst_element_unlink (play->autoplugger, play->source);
gst_bin_remove (GST_BIN (play->pipeline), play->autoplugger);
}
@@ -334,8 +334,8 @@ gst_play_audioht_set_auto (GstPlay *play, GstElement *autoplugger)
g_return_val_if_fail (play->autoplugger != NULL, FALSE);
gst_bin_add (GST_BIN (play->pipeline), play->autoplugger);
- gst_element_connect (play->source, play->autoplugger);
- gst_element_connect (play->autoplugger, audio_thread);
+ gst_element_link (play->source, play->autoplugger);
+ gst_element_link (play->autoplugger, audio_thread);
return TRUE;
}
@@ -423,7 +423,7 @@ gst_play_video_setup (GstPlay *play, GError **error)
gst_bin_add_many (
GST_BIN (audio_bin), audio_queue, play->volume,
play->audio_sink, NULL);
- gst_element_connect_many (audio_queue, play->volume,
+ gst_element_link_many (audio_queue, play->volume,
play->audio_sink, NULL);
gst_element_add_ghost_pad (
@@ -470,7 +470,7 @@ gst_play_video_setup (GstPlay *play, GError **error)
gst_bin_add_many (GST_BIN (video_bin), video_queue, colorspace,
play->video_sink, NULL);
- gst_element_connect_many (video_queue, colorspace,
+ gst_element_link_many (video_queue, colorspace,
play->video_sink, NULL);
/* setting up iterate functions */
@@ -508,9 +508,9 @@ gst_play_video_set_auto (GstPlay *play, GstElement *autoplugger)
if (play->autoplugger) {
/* we need to remove the existing autoplugger before creating a new one */
- gst_element_disconnect (play->autoplugger, audio_bin);
- gst_element_disconnect (play->autoplugger, play->source);
- gst_element_disconnect (play->autoplugger, video_bin);
+ gst_element_unlink (play->autoplugger, audio_bin);
+ gst_element_unlink (play->autoplugger, play->source);
+ gst_element_unlink (play->autoplugger, video_bin);
gst_bin_remove (GST_BIN (work_thread), play->autoplugger);
}
@@ -519,9 +519,9 @@ gst_play_video_set_auto (GstPlay *play, GstElement *autoplugger)
g_return_val_if_fail (play->autoplugger != NULL, FALSE);
gst_bin_add (GST_BIN (work_thread), play->autoplugger);
- gst_element_connect (play->source, play->autoplugger);
- gst_element_connect (play->autoplugger, audio_bin);
- gst_element_connect (play->autoplugger, video_bin);
+ gst_element_link (play->source, play->autoplugger);
+ gst_element_link (play->autoplugger, audio_bin);
+ gst_element_link (play->autoplugger, video_bin);
return TRUE;
}
@@ -539,12 +539,12 @@ gst_play_video_set_video (GstPlay *play, GstElement *video_sink)
video_mate = g_hash_table_lookup(play->other_elements, "colorspace");
if (play->video_sink) {
- gst_element_disconnect (video_mate, play->video_sink);
+ gst_element_unlink (video_mate, play->video_sink);
gst_bin_remove (GST_BIN (video_bin), play->video_sink);
}
play->video_sink = video_sink;
gst_bin_add (GST_BIN (video_bin), play->video_sink);
- gst_element_connect (video_mate, play->video_sink);
+ gst_element_link (video_mate, play->video_sink);
play->video_sink_element = gst_play_get_sink_element (play, video_sink);
@@ -571,13 +571,13 @@ gst_play_video_set_audio (GstPlay *play, GstElement *audio_sink)
if (play->audio_sink)
{
- gst_element_disconnect (play->volume, play->audio_sink);
+ gst_element_unlink (play->volume, play->audio_sink);
gst_bin_remove (GST_BIN (audio_bin), play->audio_sink);
}
play->audio_sink = audio_sink;
gst_bin_add (GST_BIN (audio_bin), play->audio_sink);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
play->audio_sink_element = gst_play_get_sink_element (play, audio_sink);
@@ -679,7 +679,7 @@ gst_play_videots_setup (GstPlay *play, GError **error)
GST_BIN (audio_bin), audio_queue,
play->volume, play->audio_sink, NULL);
- gst_element_connect_many (
+ gst_element_link_many (
audio_queue, play->volume,
play->audio_sink, NULL);
@@ -714,7 +714,7 @@ gst_play_videots_setup (GstPlay *play, GError **error)
GST_BIN (play->pipeline), video_queue,
play->video_sink, NULL);
- gst_element_connect (video_queue, play->video_sink);
+ gst_element_link (video_queue, play->video_sink);
gst_bin_set_pre_iterate_function(
GST_BIN (play->pipeline),
@@ -726,7 +726,7 @@ gst_play_videots_setup (GstPlay *play, GError **error)
(GstBinPrePostIterateFunction) callback_bin_post_iterate,
play->video_bin_mutex);
- gst_element_connect (work_thread, video_queue);
+ gst_element_link (work_thread, video_queue);
return TRUE;
}
@@ -748,9 +748,9 @@ gst_play_videots_set_auto (GstPlay *play, GstElement *autoplugger)
if (play->autoplugger) {
/* we need to remove the existing autoplugger
* before creating a new one */
- gst_element_disconnect (play->autoplugger, audio_bin);
- gst_element_disconnect (play->autoplugger, play->source);
- gst_element_disconnect (play->autoplugger, auto_identity);
+ gst_element_unlink (play->autoplugger, audio_bin);
+ gst_element_unlink (play->autoplugger, play->source);
+ gst_element_unlink (play->autoplugger, auto_identity);
gst_bin_remove (GST_BIN (work_thread), play->autoplugger);
}
@@ -759,9 +759,9 @@ gst_play_videots_set_auto (GstPlay *play, GstElement *autoplugger)
g_return_val_if_fail (play->autoplugger != NULL, FALSE);
gst_bin_add (GST_BIN (work_thread), play->autoplugger);
- gst_element_connect (play->source, play->autoplugger);
- gst_element_connect (play->autoplugger, audio_bin);
- gst_element_connect (play->autoplugger, auto_identity);
+ gst_element_link (play->source, play->autoplugger);
+ gst_element_link (play->autoplugger, audio_bin);
+ gst_element_link (play->autoplugger, auto_identity);
return TRUE;
}
@@ -778,12 +778,12 @@ gst_play_videots_set_video (GstPlay *play, GstElement *video_sink)
video_mate = g_hash_table_lookup (play->other_elements, "video_queue");
if (play->video_sink) {
- gst_element_disconnect (video_mate, play->video_sink);
+ gst_element_unlink (video_mate, play->video_sink);
gst_bin_remove (GST_BIN (play->pipeline), play->video_sink);
}
play->video_sink = video_sink;
gst_bin_add (GST_BIN (play->pipeline), play->video_sink);
- gst_element_connect (video_mate, play->video_sink);
+ gst_element_link (video_mate, play->video_sink);
return TRUE;
}
@@ -801,13 +801,13 @@ gst_play_videots_set_audio (GstPlay *play, GstElement *audio_sink)
if (play->audio_sink)
{
- gst_element_disconnect (play->volume, play->audio_sink);
+ gst_element_unlink (play->volume, play->audio_sink);
gst_bin_remove (GST_BIN (audio_bin), play->audio_sink);
}
play->audio_sink = audio_sink;
gst_bin_add (GST_BIN (audio_bin), play->audio_sink);
- gst_element_connect (play->volume, play->audio_sink);
+ gst_element_link (play->volume, play->audio_sink);
play->audio_sink_element = gst_play_get_sink_element (play, audio_sink);