typefind: Allow caps query in "have-type" signal handlers
authorRomain Picard <romain.picard@oakbits.com>
Tue, 15 Mar 2016 15:37:33 +0000 (16:37 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 15 Mar 2016 16:58:06 +0000 (18:58 +0200)
commit20859af3f2e9256b502905270426881e04b09898
treeb534db0279bfaba3d750b5285dad8903c09233c3
parentb6859ed71f6d4c27a5174157a0e94064540b62a8
typefind: Allow caps query in "have-type" signal handlers

If an application calls gst_pad_query_caps from its "have-type" signal handler,
then the query fails because typefind->caps has not been set yet.

This patch sets typefind->caps in the object method handler, before the signal
handlers are called.

https://bugzilla.gnome.org/show_bug.cgi?id=763491
plugins/elements/gsttypefindelement.c