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 --- examples/indexing/indexmpeg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/indexing/indexmpeg.c') diff --git a/examples/indexing/indexmpeg.c b/examples/indexing/indexmpeg.c index fc5b83fb..10215a0e 100644 --- a/examples/indexing/indexmpeg.c +++ b/examples/indexing/indexmpeg.c @@ -175,7 +175,7 @@ print_progress (GstPad *pad) status[0] = '|'; format = GST_FORMAT_PERCENT; - res = gst_pad_query (pad, GST_PAD_QUERY_POSITION, &format, &value); + res = gst_pad_query (pad, GST_QUERY_POSITION, &format, &value); if (res) { percent = value / (2 * GST_FORMAT_PERCENT_SCALE); } @@ -222,7 +222,6 @@ main (gint argc, gchar *argv[]) /* create index that elements can fill */ index = gst_index_factory_make ("memindex"); - index = NULL; if (verbose && index) g_signal_connect (G_OBJECT (index), "entry_added", G_CALLBACK (entry_added), NULL); -- cgit v1.2.1