diff options
author | Julien Moutte <julien@moutte.net> | 2003-03-03 17:58:07 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2003-03-03 17:58:07 +0000 |
commit | 42aadabc81d991b00582ae9b846f8f0aa4d1b3cd (patch) | |
tree | eef1a47bcd54c5a2509d7c40edb4af9ef9557f41 /gst-libs/gst/play/playpipelines.c | |
parent | c62995f2fc0bb404616311c43e9e4177d4c18dc1 (diff) | |
download | gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.tar.gz gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.tar.bz2 gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.zip |
gst_play_get_sink_element has been improved :
Original commit message from CVS:
gst_play_get_sink_element has been improved :
- Recursively searches in bins
- Able to find sink_element of a specified GstPlaySinkType (audio,video,any)
This now allow us to send very complex bins to GstPlay for audio/video sink without breaking length querying, eos signaling, etc..
Diffstat (limited to 'gst-libs/gst/play/playpipelines.c')
-rw-r--r-- | gst-libs/gst/play/playpipelines.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gst-libs/gst/play/playpipelines.c b/gst-libs/gst/play/playpipelines.c index ace3462a..3b8fb61d 100644 --- a/gst-libs/gst/play/playpipelines.c +++ b/gst-libs/gst/play/playpipelines.c @@ -196,7 +196,10 @@ gst_play_audiot_set_audio ( GstPlay *play, gst_bin_add (GST_BIN (play->pipeline), play->audio_sink); gst_element_link (play->volume, play->audio_sink); - play->audio_sink_element = gst_play_get_sink_element (play, audio_sink); + play->audio_sink_element = gst_play_get_sink_element ( + play, + audio_sink, + GST_PLAY_SINK_TYPE_AUDIO); if (play->audio_sink_element != NULL) { g_signal_connect (G_OBJECT (play->audio_sink_element), "eos", @@ -344,7 +347,10 @@ gst_play_audioht_set_audio ( GstPlay *play, gst_bin_add (GST_BIN (audio_thread), play->audio_sink); gst_element_link (play->volume, play->audio_sink); - play->audio_sink_element = gst_play_get_sink_element (play, audio_sink); + play->audio_sink_element = gst_play_get_sink_element ( + play, + audio_sink, + GST_PLAY_SINK_TYPE_AUDIO); if (play->audio_sink_element != NULL) { g_signal_connect (G_OBJECT (play->audio_sink_element), "eos", @@ -604,7 +610,10 @@ gst_play_video_set_video ( GstPlay *play, gst_bin_add (GST_BIN (video_bin), play->video_sink); gst_element_link (video_mate, play->video_sink); - play->video_sink_element = gst_play_get_sink_element (play, video_sink); + play->video_sink_element = gst_play_get_sink_element ( + play, + video_sink, + GST_PLAY_SINK_TYPE_VIDEO); if (play->video_sink_element != NULL) { g_signal_connect ( G_OBJECT (play->video_sink_element), @@ -646,7 +655,10 @@ gst_play_video_set_audio ( GstPlay *play, gst_bin_add (GST_BIN (audio_bin), play->audio_sink); gst_element_link (play->volume, play->audio_sink); - play->audio_sink_element = gst_play_get_sink_element (play, audio_sink); + play->audio_sink_element = gst_play_get_sink_element ( + play, + audio_sink, + GST_PLAY_SINK_TYPE_AUDIO); if (play->audio_sink_element != NULL) { g_signal_connect (G_OBJECT (play->audio_sink_element), "eos", |