Fix inaccurate counting of elapsed time.

Fixes #1946
This commit is contained in:
mark 2006-11-08 20:49:02 +00:00
parent 876cbca5e6
commit 56d8e855e6
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error)
}
GstFormat fmt = GST_FORMAT_TIME;
gst_element_query( decoder, GST_QUERY_POSITION, &fmt, &ns );
gst_element_query(audiosink, GST_QUERY_POSITION, &fmt, &ns);
length.reset(new time_duration(microseconds(ns / 1000LL)));