plugins/queue: Avoid useless segment_to_running_time() calculations.
authorEdward Hervey <bilboed@bilboed.com>
Mon, 28 Sep 2009 13:20:06 +0000 (15:20 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 7 Oct 2009 07:06:21 +0000 (09:06 +0200)
commit9be7fdc8574724d8a2ec3f24cd24adde82de2414
tree9a0dd228f1c5212ab904064621c0774def5b2ce8
parentb1945ad429af4c1b37334f5a157feb7084cf0448
plugins/queue: Avoid useless segment_to_running_time() calculations.

* Cache src and sink time
* Use a boolean to know whether src/sink time need to be recalculated

Avoids 50% calls to gst_segment_to_running_time()
plugins/elements/gstqueue.c
plugins/elements/gstqueue.h