Closed GoogleCodeExporter closed 9 years ago
queryPosition also seems to have this problem.
public long queryPosition(TimeUnit unit) {
return unit.convert(queryPosition(Format.TIME), TimeUnit.NANOSECONDS);
}
Original comment by nearw...@gmail.com
on 15 Apr 2013 at 7:12
imho this implementation is good. the return value of
gst_element_query_duration always nanosec. and if we'd like to convert it to
sec then it's a proper call to:
TimeUnit.seconds.convert(duration[0], TimeUnit.NANOSECONDS);
but feel free to comment it.
Original comment by lfar...@lfarkas.org
on 15 Apr 2013 at 7:59
Oh, I see. I was reading it backwards without noticing the 'unit.' prefix.
thinking that the argument to convert was the destination unit.
Original comment by nearw...@gmail.com
on 15 Apr 2013 at 8:11
Original issue reported on code.google.com by
nearw...@gmail.com
on 15 Apr 2013 at 7:05