<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
Hi,<br>
I want to connect two custom elements to a multiqueue, to replicate the following working pipeline.<br>
<br>
<b>gst-launch-0.10 multiqueue name="mq" filesrc location="/mnt/Media/test.video" ! myplugin ! mq. mq. ! legacyh264parse ! vpudec ! imxv4l2sink filesrc location="/mnt/Media/test.audio" ! myplugin ! mq. mq.! aacparse ! beepdec ! alsasink</b><br>
<br>
I tried the following code but the signals are not triggered at all. Please suggest possible ways of decoding further.<br>
My plugin has static pads. Is there a way to connect static pads without having to register a callback?<br>
<br>
static void on_pad_added_mq (GstElement *element, GstPad *pad, gpointer data)<br>
{<br>
        g_print(" Getting called !!! ");<br>
        if(!g_strcmp0(gst_pad_get_name(pad),"src_0") || !g_strcmp0(gst_pad_get_name(pad),"src_1"))<br>
        {<br>
                g_print("Connecting the multiqueue to parsers. Sink Element: %s, SrcPad name : %s \n", GST_ELEMENT_NAME(data),gst_pad_get_name(pad));<br>
                gst_pad_link(pad,gst_element_get_static_pad((GstElement *)data,"sink"));<br>
        }<br>
}<br>
<br>
static void on_pad_added_vid_plug (GstElement *element, GstPad *pad, gpointer data)<br>
{<br>
        g_print(" Getting called !!! ");<br>
        if(!g_strcmp0(gst_pad_get_name(pad),"src"))<br>
        {<br>
                g_print("Connecting the pesdecrypter to multiqueue. Sink Element: %s, SrcPad name : %s \n", GST_ELEMENT_NAME(data),gst_pad_get_name(pad));<br>
                gst_pad_link(pad,gst_element_get_static_pad((GstElement *)data,"sink_0"));<br>
        }<br>
}<br>
<br>
static void on_pad_added_aud_plug (GstElement *element, GstPad *pad, gpointer data)<br>
{<br>
        g_print(" Getting called !!! ");<br>
        if(!g_strcmp0(gst_pad_get_name(pad),"src"))<br>
        {<br>
                g_print("Connecting the pesdecrypter to multiqueue. Sink Element: %s, SrcPad name : %s \n", GST_ELEMENT_NAME(data),gst_pad_get_name(pad));<br>
                gst_pad_link(pad,gst_element_get_static_pad((GstElement *)data,"sink_1"));<br>
        }<br>
}<br>
<br>
g_signal_connect(vid_plug,"pad-added",G_CALLBACK(on_pad_added_vid_plug),multiqueue);<br>
g_signal_connect(aud_plug,"pad-added",G_CALLBACK(on_pad_added_aud_plug),multiqueue);<br>
g_signal_connect(multiqueue,"pad-added",G_CALLBACK(on_pad_added_mq),vid_parse);<br>
g_signal_connect(multiqueue,"pad-added",G_CALLBACK(on_pad_added_mq),au_parse);<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Regards,
Subodh</pre>
-- **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the
 original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. UFOMoviez India Ltd. has taken every reasonable precaution to minimize
 this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. UFOMoviez India Ltd. reserves the right to monitor and review the content
 of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the UFOMoviez India Ltd.'s e-mail system. ***************** End of Disclaimer *******************
</body>
</html>