queue2: Avoid useless segment_to_running_time() calculations.
authorEdward Hervey <bilboed@bilboed.com>
Tue, 19 Oct 2010 15:40:13 +0000 (17:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 2 Dec 2010 18:04:56 +0000 (19:04 +0100)
commit8a79c1aa980aa3e9253a55e14c5896f3599efea5
treef86ecfc7f6e4d10ce6f61006d1c8c14c61f92b8d
parentece40dacbc0ae6842e66b2665ee6767b56fa9d39
queue2: Avoid useless segment_to_running_time() calculations.

* Cache src and sink time
* Use a boolean to known whether src/sink time needs to be recalculated

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