summaryrefslogtreecommitdiffstats
path: root/examples/indexing
diff options
context:
space:
mode:
Diffstat (limited to 'examples/indexing')
-rw-r--r--examples/indexing/indexmpeg.c3
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);