diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-12-30 17:53:18 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-12-30 17:53:18 +0000 |
commit | 2deab46c699196a902a076bbd969d26a15d9068a (patch) | |
tree | 6d3936fd0046d1a3679a29aa833c72dc959fa9e9 /examples/indexing | |
parent | 5f3fa649393fc4321b76e3220d3682511281d405 (diff) | |
download | gst-plugins-bad-2deab46c699196a902a076bbd969d26a15d9068a.tar.gz gst-plugins-bad-2deab46c699196a902a076bbd969d26a15d9068a.tar.bz2 gst-plugins-bad-2deab46c699196a902a076bbd969d26a15d9068a.zip |
Fix plugins for new query API
Original commit message from CVS:
Fix plugins for new query API
Diffstat (limited to 'examples/indexing')
-rw-r--r-- | examples/indexing/indexmpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |