webpdec: Wait for segment event before checking it
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2016 01:10:04 +0000 (21:10 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2016 01:10:04 +0000 (21:10 -0400)
commitd33352edb506b4dd6f193de07c3853914c0de8d6
treefc42449d32c611c14d34ae088d6b6b0bf8bcd231
parent50537e2c08cec2c7b21f1a14299899fbef892368
webpdec: Wait for segment event before checking it

The heuristic to choose between packetise or not was changed to use the
segment format. The problem is that this change is reading the segment
during the caps event handling. The segment event will only be sent
after. That prevented the decoder to go in packetize mode, and avoid
useless parsing.

https://bugzilla.gnome.org/show_bug.cgi?id=736252
ext/webp/gstwebpdec.c