typefind: Avoid messing pads activation
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 28 Jan 2010 14:57:33 +0000 (11:57 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 12 Feb 2010 20:23:29 +0000 (17:23 -0300)
commit51d382e2eef0ed6aea6319403a33dfd7abcd235e
treecf9aeb54f7880d00a22e11d4a5c424dd2e75dd72
parentfae502056f8a6c84a8428142a4a319b346eb922c
typefind: Avoid messing pads activation

Typefind might mess up pads modes (pull/push) if a
downstream element is plugged and its pads activated
in 'step 2' of typefind pads activation.

This happens because the following steps don't check
if we already emitted typefound due to upstream setting
caps on buffers being pulled in the typefind helpers.

Avoid that by checking if typefound is already emmited.

Fixes #608036
plugins/elements/gsttypefindelement.c