vmncdec: Wait for segment event before checking it
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2016 01:04:21 +0000 (21:04 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2016 01:05:41 +0000 (21:05 -0400)
commit50537e2c08cec2c7b21f1a14299899fbef892368
treec5cafdb782e60426bbdcfcc75ac15b459b3e8a7a
parent4c874797b264d5e8091d3410bc687be4365a3f36
vmncdec: 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
gst/vmnc/vmncdec.c