encodebin: activate ghost pad after creating it
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 14 Feb 2013 15:59:51 +0000 (15:59 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 14 Feb 2013 16:07:48 +0000 (16:07 +0000)
commitbccfc679b5bf00dbbdce2f205632a76101e65a10
tree41119720b75abe23fd859d04381c375fe5491dc3
parent1e5b50e94c3938c2fb339bd53f99b68c9e94b3be
encodebin: activate ghost pad after creating it

This ensures the ghost pad will not stay in flushing mode
when it receives a flush stop event, and generally behave
badly.

This fixes at least one case of a dynamic decodebin2 + encodebin
pipeline finding a source that has not prerolled when it should
have been (due to the ghostpad staying in flushing mode).
gst/encoding/gstencodebin.c