From 0b13c0f9ce54ce7b1c3f340d4fb3cde59c85214e Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 13 Apr 2003 20:02:34 +0000 Subject: make Company happy : Changed visualisation pipeline structure.. audio sink is directly connected to tee so no queue b... Original commit message from CVS: make Company happy : Changed visualisation pipeline structure.. audio sink is directly connected to tee so no queue between volume and audio sink... --- gst-libs/gst/play/play.old.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gst-libs/gst/play/play.old.c') diff --git a/gst-libs/gst/play/play.old.c b/gst-libs/gst/play/play.old.c index dd322896..895c530f 100644 --- a/gst-libs/gst/play/play.old.c +++ b/gst-libs/gst/play/play.old.c @@ -214,12 +214,14 @@ gst_play_get_length_callback (GstPlay *play) gboolean query_worked = FALSE; g_print("trying to get length\n"); - if (play->audio_sink_element != NULL){ + if ( (play->audio_sink_element != NULL) && + (GST_IS_ELEMENT (play->audio_sink_element)) ) { g_mutex_lock(play->audio_bin_mutex); query_worked = gst_element_query (play->audio_sink_element, GST_QUERY_TOTAL, &format, &value); g_mutex_unlock(play->audio_bin_mutex); } - else if (play->video_sink_element != NULL){ + else if ( (play->video_sink_element != NULL) && + (GST_IS_ELEMENT (play->video_sink_element)) ) { g_mutex_lock(play->video_bin_mutex); query_worked = gst_element_query (play->video_sink_element, GST_QUERY_TOTAL, &format, &value); g_mutex_unlock(play->video_bin_mutex); -- cgit v1.2.1