diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2004-10-25 17:43:51 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2004-10-25 17:43:51 +0000 |
commit | 89f16c31e9a43bd634e2931ef6fed64787756901 (patch) | |
tree | 4a17ca3e44eec070fe5773ece0aa1793dee74249 /examples/seeking/cdplayer.c | |
parent | e435d7412b3ea259bb28631a3139a8f8b1f35dba (diff) | |
download | gst-plugins-bad-89f16c31e9a43bd634e2931ef6fed64787756901.tar.gz gst-plugins-bad-89f16c31e9a43bd634e2931ef6fed64787756901.tar.bz2 gst-plugins-bad-89f16c31e9a43bd634e2931ef6fed64787756901.zip |
examples/seeking/: Added some more examples, update others.
Original commit message from CVS:
* examples/seeking/Makefile.am:
* examples/seeking/cdplayer.c: (update_scale):
* examples/seeking/chained.c: (unlinked), (new_pad), (main):
* examples/seeking/playbin.c: (make_playerbin_pipeline),
(format_value), (update_scale), (iterate), (start_seek),
(stop_seek), (print_media_info), (play_cb), (pause_cb), (stop_cb),
(print_usage), (main):
Added some more examples, update others.
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) |