encodebin: Also lock input caps when dynamic output is disabled
authorThibault Saunier <tsaunier@igalia.com>
Sun, 22 Apr 2018 13:49:29 +0000 (10:49 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 1 May 2018 19:15:25 +0000 (21:15 +0200)
commit9ce8cf89ba2d2047b4735f8a834d4659d12f91d1
tree891b9b5fd8264a58c50c1ff9141f8e62afc490fb
parent46c024ea3dcc8e19a82f659f7be0ee77f4fec636
encodebin: Also lock input caps when dynamic output is disabled

With the way caps negotiation work in encoders, the only way to ensure
that no downstream renegotiation is done in the encoder is to also lock
upstream caps. Anyway with the current behavior upstream of encoders
*require* to handle any file format so locking upstream format should
be safe.

https://bugzilla.gnome.org/show_bug.cgi?id=795464
gst/encoding/gstencodebin.c