/* we want to be notified again the next time there is a message
* on the bus, so returning TRUE (FALSE means we want to stop watching
* for messages on the bus and our callback should not be called again)
On Wed, Feb 5, 2014 at 6:34 PM, Adrien Schwartzentruber
<[hidden email]> wrote:
> Try to replace by :
> gst_element_link_many(src, parse, dec, NULL);
> The callback pad_added is never called because this element isn't linked to
> the parser.
Well the src pad of wavparse is not available always, that's i why
i've not linked them.
I've solved the issue. The problem was in this line :
g_signal_connect (dec, "pad-added", G_CALLBACK (on_pad_added), dec);
I should have connected to "parse" element whose src template is
created "on the fly". If i put "parse" there, it works fine.