parent
876cbca5e6
commit
56d8e855e6
|
@ -405,7 +405,7 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error)
|
||||||
}
|
}
|
||||||
|
|
||||||
GstFormat fmt = GST_FORMAT_TIME;
|
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)));
|
length.reset(new time_duration(microseconds(ns / 1000LL)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue