multiqueue: Fix high_time computation
authorEdward Hervey <edward@centricular.com>
Fri, 30 Oct 2015 09:22:20 +0000 (10:22 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 2 Dec 2015 15:03:16 +0000 (16:03 +0100)
commit785edec27004369739ea3ece18bf36a68fe09865
treeb6f00485d9662abf257b8a51e7389648a1f8c8a9
parent725a71ea0c99fcdddddf9e97a4392a5b825f598b
multiqueue: Fix high_time computation

* Avoid the computation completely if we know we don't need it (not in
  sync time mode)
* Make sure we don't override highest time with GST_CLOCK_TIME_NONE on
  unlinked pads
* Ensure the high_time gets properly updated if all pads are not linked
* Fix the comparision in the loop whether the target high time is the same
  as the current time
* Split wake_up_next_non_linked method to avoid useless calculation

https://bugzilla.gnome.org/show_bug.cgi?id=757353
plugins/elements/gstmultiqueue.c