queue: more queue optimizations
authorStefan Kost <ensonic@users.sf.net>
Thu, 8 Oct 2009 07:47:44 +0000 (10:47 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 8 Oct 2009 07:54:42 +0000 (10:54 +0300)
commit9f9353a84ab91eee2f8dd1c906a2460d7b264b9a
treec740812a4c3b73f913d8249598093b2c9a46a927
parent963932b1f14e512a9ebf8389e77315f9c5df4870
queue: more queue optimizations

Split gst_queue_locked_enqueue() into variant for buffer and event to get rid of
the if() and make the code more readable (constant boolean parameters are never
nice). Removes the if (item) checks as we dereference the pointer before anyway.

Also apply the same idea of reusing the previous knowledge in
gst_queue_locked_dequeue to remove more type checks.
plugins/elements/gstqueue.c