summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/play/playpipelines.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/play/playpipelines.c')
-rw-r--r--gst-libs/gst/play/playpipelines.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gst-libs/gst/play/playpipelines.c b/gst-libs/gst/play/playpipelines.c
index 3b8fb61d..952ca8a7 100644
--- a/gst-libs/gst/play/playpipelines.c
+++ b/gst-libs/gst/play/playpipelines.c
@@ -201,6 +201,11 @@ gst_play_audiot_set_audio ( GstPlay *play,
audio_sink,
GST_PLAY_SINK_TYPE_AUDIO);
+ play->visualisation_sink_element = gst_play_get_sink_element (
+ play,
+ audio_sink,
+ GST_PLAY_SINK_TYPE_VIDEO);
+
if (play->audio_sink_element != NULL) {
g_signal_connect (G_OBJECT (play->audio_sink_element), "eos",
G_CALLBACK (callback_audio_sink_eos), play);
@@ -352,6 +357,11 @@ gst_play_audioht_set_audio ( GstPlay *play,
audio_sink,
GST_PLAY_SINK_TYPE_AUDIO);
+ play->visualisation_sink_element = gst_play_get_sink_element (
+ play,
+ audio_sink,
+ GST_PLAY_SINK_TYPE_VIDEO);
+
if (play->audio_sink_element != NULL) {
g_signal_connect (G_OBJECT (play->audio_sink_element), "eos",
G_CALLBACK (callback_audio_sink_eos), play);
@@ -660,6 +670,11 @@ gst_play_video_set_audio ( GstPlay *play,
audio_sink,
GST_PLAY_SINK_TYPE_AUDIO);
+ play->visualisation_sink_element = gst_play_get_sink_element (
+ play,
+ audio_sink,
+ GST_PLAY_SINK_TYPE_VIDEO);
+
if (play->audio_sink_element != NULL) {
g_signal_connect (G_OBJECT (play->audio_sink_element), "eos",
G_CALLBACK (callback_audio_sink_eos), play);