diff options
Diffstat (limited to 'examples/seeking/cdplayer.c')
-rw-r--r-- | examples/seeking/cdplayer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/seeking/cdplayer.c b/examples/seeking/cdplayer.c index afccaa84..73ab9cf8 100644 --- a/examples/seeking/cdplayer.c +++ b/examples/seeking/cdplayer.c @@ -131,9 +131,8 @@ update_scale (gpointer data) GstElement *element = GST_ELEMENT (seekable_elements->data); gst_element_query (element, GST_QUERY_TOTAL, &format, &duration); + gst_element_query (element, GST_QUERY_POSITION, &format, &position); } - if (clock) - position = gst_clock_get_time (clock); if (stats) { if (clock) |