From 2deab46c699196a902a076bbd969d26a15d9068a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 30 Dec 2002 17:53:18 +0000 Subject: Fix plugins for new query API Original commit message from CVS: Fix plugins for new query API --- gst-libs/gst/play/play.old.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst-libs/gst/play') diff --git a/gst-libs/gst/play/play.old.c b/gst-libs/gst/play/play.old.c index 41f9edef..2e9edea7 100644 --- a/gst-libs/gst/play/play.old.c +++ b/gst-libs/gst/play/play.old.c @@ -548,12 +548,12 @@ gst_play_get_length_callback (GstPlay *play) g_print("trying to get length\n"); if (play->audio_sink_element != NULL){ g_mutex_lock(play->audio_bin_mutex); - query_worked = gst_element_query (play->audio_sink_element, GST_PAD_QUERY_TOTAL, &format, &value); + 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){ g_mutex_lock(play->video_bin_mutex); - query_worked = gst_element_query (play->video_sink_element, GST_PAD_QUERY_TOTAL, &format, &value); + query_worked = gst_element_query (play->video_sink_element, GST_QUERY_TOTAL, &format, &value); g_mutex_unlock(play->video_bin_mutex); } if (query_worked){ -- cgit v1.2.1