diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2005-05-09 10:56:13 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2005-05-09 10:56:13 +0000 |
commit | 0ba57f5816a691e74cd3cf2a2352ad756d1f25ba (patch) | |
tree | 22e4a374351a2651b735dee4b1138b5d8d3a7ce7 /gst/playback/test3.c | |
parent | 276f6fe55984dfa1bb3516f136a23dbd4b6b86d5 (diff) |
Port to new query API.
Original commit message from CVS:
Port to new query API.
Updated seek.
Cleanups in x[v]imagesink
Diffstat (limited to 'gst/playback/test3.c')
-rw-r--r-- | gst/playback/test3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/playback/test3.c b/gst/playback/test3.c index 2dca54fc2..aaba4f65e 100644 --- a/gst/playback/test3.c +++ b/gst/playback/test3.c @@ -27,8 +27,7 @@ update_scale (GstElement * element) gint64 position; GstFormat format = GST_FORMAT_TIME; - gst_element_query (element, GST_QUERY_TOTAL, &format, &duration); - gst_element_query (element, GST_QUERY_POSITION, &format, &position); + gst_element_query_position (element, &format, &position, &duration); g_print ("%" G_GINT64_FORMAT " %" G_GINT64_FORMAT "\n", duration, position); |