From 9e308d150a226720361faab35dd29a8f604c07e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 28 Jul 2011 12:01:58 +0100 Subject: [PATCH] manual: update for position/duration query API change --- docs/manual/advanced-position.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/manual/advanced-position.xml b/docs/manual/advanced-position.xml index 59572315c8..1786339a49 100644 --- a/docs/manual/advanced-position.xml +++ b/docs/manual/advanced-position.xml @@ -78,11 +78,10 @@ my_bus_message_cb (GstBus *bus, static gboolean cb_print_position (GstElement *pipeline) { - GstFormat fmt = GST_FORMAT_TIME; gint64 pos, len; - if (gst_element_query_position (pipeline, &fmt, &pos) - && gst_element_query_duration (pipeline, &fmt, &len)) { + if (gst_element_query_position (pipeline, GST_FORMAT_TIME, &pos) + && gst_element_query_duration (pipeline, GST_FORMAT_TIME, &len)) { g_print ("Time: %" GST_TIME_FORMAT " / %" GST_TIME_FORMAT "\r", GST_TIME_ARGS (pos), GST_TIME_ARGS (len)); }