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/seeking/seek.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/seeking/seek.c') diff --git a/examples/seeking/seek.c b/examples/seeking/seek.c index 49b3a508..b8fcad77 100644 --- a/examples/seeking/seek.c +++ b/examples/seeking/seek.c @@ -407,7 +407,7 @@ make_mpeg_pipeline (const gchar *location) g_object_set (G_OBJECT (src), "location", location, NULL); demux = gst_element_factory_make_or_warn ("mpegdemux", "demux"); - //g_object_set (G_OBJECT (demux), "sync", TRUE, NULL); + g_object_set (G_OBJECT (demux), "sync", TRUE, NULL); seekable_elements = g_list_prepend (seekable_elements, demux); @@ -604,7 +604,7 @@ query_durations () GstFormat format; format = seek_formats[i].format; - res = gst_pad_query (pad, GST_PAD_QUERY_TOTAL, &format, &value); + res = gst_pad_query (pad, GST_QUERY_TOTAL, &format, &value); if (res) { g_print ("%s %13lld | ", seek_formats[i].name, value); } @@ -635,7 +635,7 @@ query_positions () GstFormat format; format = seek_formats[i].format; - res = gst_pad_query (pad, GST_PAD_QUERY_POSITION, &format, &value); + res = gst_pad_query (pad, GST_QUERY_POSITION, &format, &value); if (res) { g_print ("%s %13lld | ", seek_formats[i].name, value); } @@ -662,7 +662,7 @@ update_scale (gpointer data) if (seekable_pads) { GstPad *pad = GST_PAD (seekable_pads->data); - gst_pad_query (pad, GST_PAD_QUERY_TOTAL, &format, &duration); + gst_pad_query (pad, GST_QUERY_TOTAL, &format, &duration); } position = gst_clock_get_time (clock); -- cgit v1.2.1