<div dir="auto"><div>Ok, as you suspected may be the pad is not really getting created.<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">How about not linking if the dynamic pad is NULL. See below:</div><div dir="auto"><br></div><div dir="auto"><div style="font-family:sans-serif;font-size:13.696px" dir="auto">    if (g_strrstr(capsName,"audio"))</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">        {</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">                GstPad *dynamic_pad = gst_element_get_static_pad(<wbr>audioDepay, "sink");</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><font color="#2196f3">g_assert(dynamic_pad!=NULL);</font></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><span style="font-size:13.696px"><font color="#2196f3">                g_print("pad created .....1 \n");</font></span><br></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><div style="color:purple">                gst_pad_link(pad, dynamic_pad);</div><div dir="auto"><font color="#2196f3">gst_object_unref(dynamic_pad);</font></div><div style="color:purple">        }</div><div style="color:purple"><br></div><div style="color:purple">        else if (g_strrstr(capsName, "video"))</div><div style="color:purple">        {</div></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">                </div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">                GstPad *video_dynamic_pad= gst_element_get_static_pad(<wbr>videoDepay, "sink");</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><font color="#2196f3"><span style="font-size:13.696px">g_assert(video_dynamic_pad!=NULL);</span><br></font></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><span style="font-size:13.696px"><font color="#2196f3">g_print("pad created .....2 \n");</font></span><br></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">                gst_pad_link(pad, video_dynamic_pad);</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><br></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto"><span style="font-size:13.696px"><font color="#2196f3">gst_object_unref(video_dynamic_pad);</font></span><br></div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">        }</div><div style="font-family:sans-serif;font-size:13.696px" dir="auto">        g_free(capsName);</div></div><div dir="auto"><br></div><br><div class="gmail_extra"><br><div class="gmail_quote">On 25-Jan-2017 11:02 AM, "rajvik" <<a href="mailto:kamdar.rajvi@gmail.com">kamdar.rajvi@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Getting same error even if linking with audio and video depay<div>error logs:</div><div><div><br></div><div>0:00:00.526193431  2163 0xb440e180 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_<wbr>jitter_buffer_set_clock_rate: Clock rate changed from 0 to 90000</div><div>0:00:00.552156505  2163 0xb440e230 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_<wbr>jitter_buffer_set_clock_rate: Clock rate changed from 0 to 44100</div><div class="quoted-text"><div>name of caps struct string: application/x-rtp </div></div><div class="quoted-text"><div>name of caps string: application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)<wbr>42801e, sprop-parameter-sets=(str</div></div><div>ing)"Z0KAHpZWDY/yf/<wbr>gACAAKhAAAD6QAA6mDgAAC3GAAFuNv<wbr>xjg7QsXc\,aMqNSA\=\=", a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)3625393740, clock-base=(uint)27</div><div>09244179, seqnum-base=(uint)46478, npt-start=(guint64)<wbr>60293455191000, play-speed=(double)1, play-scale=(double)1 </div><div class="quoted-text"><div>name of caps struct string: application/x-rtp </div><div>name of caps string: application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(string)MPEG4-<wbr>GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, m</div><div>ode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, profile=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-ch</div></div><div>arset=(string)UTF-8, ssrc=(uint)3051532542, clock-base=(uint)3346164277, seqnum-base=(uint)2401, npt-start=(guint64)<wbr>60293455191000, play-speed=(double)1, play-scale=(double)1 </div><div>here .....2 </div><div>here .....1 </div><div>0:00:00.714840440  2163 0xb440e180 WARN                 basesrc gstbasesrc.c:2933:gst_base_<wbr>src_loop:<udpsrc4> error: Internal data flow error.</div><div>0:00:00.733348867  2163 0xb440e180 WARN                 basesrc gstbasesrc.c:2933:gst_base_<wbr>src_loop:<udpsrc4> error: streaming task paused, reason not-linked (-1)</div><div>^C</div></div><div><br></div><div><br><div>code snippet: </div></div><div><div class="quoted-text"><div>static void onPadAdded(GstElement *element, GstPad *pad, gpointer data)</div><div>{</div></div><div>#if 1</div><div class="quoted-text"><div>        GstCaps *caps;</div><div>        const char *name;</div><div>        char *capsName;</div><div>        caps = gst_pad_get_current_caps(pad);</div><div>        GstStructure *str = gst_caps_get_structure(caps, 0);</div><div>        name = gst_structure_get_name(str);</div><div>        g_print("name of caps struct string: %s \n", name);</div><div>        capsName = gst_caps_to_string(caps);</div><div>        g_print("name of caps string: %s \n", capsName);</div></div><div>#endif</div><div>        if (g_strrstr(capsName,"audio"))</div><div>        {</div><div>                g_print("here .....1 \n");</div><div>                GstPad *dynamic_pad = gst_element_get_static_pad(<wbr>audioDepay, "sink");</div><div class="quoted-text"><div>                gst_pad_link(pad, dynamic_pad);</div><div>        }</div><div><br></div><div>        else if (g_strrstr(capsName, "video"))</div><div>        {</div></div><div>                g_print("here .....2 \n");</div><div>                GstPad *video_dynamic_pad= gst_element_get_static_pad(<wbr>videoDepay, "sink");</div><div>                gst_pad_link(pad, video_dynamic_pad);</div><div>        }</div><div>        g_free(capsName);</div><div><br></div><div>}</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="quoted-text">On Wed, Jan 25, 2017 at 10:30 AM, Tarun Tej K [via GStreamer-devel] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=4681626&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">

        <div dir="auto"><div class="quoted-text">The pad gets created and that is what you see after the 'name of caps string' in your debug info.</div><div dir="auto"><div class="quoted-text"><br><div dir="auto"><span style="font-family:sans-serif">In the code snippet  you've linked audioQueue and videoQueue with the pads. Have you tried linking the respective pads with audioDepay and videoDepay directly without using the queues at all? Since you're not reading the audio and video into different sinks (audiosink and ximagesink), we don't need the queue anymore. Us</span></div><div dir="auto"><span style="font-family:sans-serif">e the pads of rtspsrc to link with the respective depayloders.</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Tarun</span></div></div><div dir="auto"><br><div dir="auto"><br><div class="gmail_extra"><br><div class="gmail_quote"><div class="elided-text"><span>On 25-Jan-2017 9:33 AM, "rajvik" <<a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<br type="attribution"></span></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="m_8584713559998024826m_-2698758371948032478quote"><div class="elided-text"><span><div dir="ltr">When I try to get the name of the pad, it says EMPTY.<div>I do not know how do we find that a pad has been created or not.</div><div><br></div><div>Rajvi</div></div></span><div><div class="m_8584713559998024826h5"><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_8584713559998024826m_-2698758371948032478elided-text">On Tue, Jan 24, 2017 at 10:45 PM, Ian Davidson [via GStreamer-devel] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=4681624&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="m_8584713559998024826m_-2698758371948032478elided-text">

        I may be way off course here - but when you are notified that a pad has 
<br>been added, don't you want to find the name of the PAD, not the name of 
<br>the CAPS?
<br><br>(See 
<br><a href="https://gstreamer.freedesktop.org/documentation/application-development/basics/pads.html" rel="nofollow" link="external" target="_blank">https://gstreamer.freedesktop.<wbr>org/documentation/application-<wbr>development/basics/pads.html</a>)
<br><br>Ian
<br><br><br>On 24/01/2017 14:45, rajvik wrote:
<br>> SNIP SNIP
<br><div><div class="m_8584713559998024826m_-2698758371948032478m_8956883991239427564h5"><div class="m_8584713559998024826m_-2698758371948032478m_8956883991239427564m_624516158085767003shrinkable-quote"><div class="m_8584713559998024826m_-2698758371948032478m_8956883991239427564shrinkable-quote"><div class="m_8584713559998024826m_-2698758371948032478shrinkable-quote"><div class="m_8584713559998024826shrinkable-quote"><br>> Any idea as to how to move forward with this?
<br>> Code snippet:
<br>>
<br>> GstElement *audioQueue, *videoQueue;
<br>> GstElement *source, *audio, *video, *convert, *pipeline, *audioDepay,
<br>>            *audioParse, *audioDecode, *audioConvert, *audioResample, 
<br>> *audioSink, *videoDepay, *videoParser, *videoDecode, *videoConvert, 
<br>> *videoScale, *videoSink;
<br>>
<br>> static void onPadAdded(GstElement *element, GstPad *pad, gpointer data)
<br>> {
<br>>         GstCaps *caps;
<br>>         const char *name;
<br>>         char *capsName;
<br>>         caps = gst_pad_get_current_caps(pad);
<br>>         GstStructure *str = gst_caps_get_structure(caps, 0);
<br>>         name = gst_structure_get_name(str);
<br>>         g_print("name of caps struct string: %s \n", name);
<br>>         capsName = gst_caps_to_string(caps);
<br>>         g_print("name of caps string: %s \n", capsName);
<br>>         if (g_strrstr(capsName,"audio"))
<br>>         {
<br>>                 GstPad *dynamic_pad = 
<br>> gst_element_get_static_pad(aud<wbr>ioQueue, "sink");
<br>>                 gst_pad_link(pad, dynamic_pad);
<br>>         }
<br>>
<br>>         else if (g_strrstr(capsName, "video"))
<br>>         {
<br>>                 GstPad *video_dynamic_pad = 
<br>> gst_element_get_static_pad(vid<wbr>eoQueue, "sink");
<br>>                 gst_pad_link(pad, video_dynamic_pad);
<br>>         }
<br>>         g_free(capsName);
<br>>
<br>>
</div></div></div></div></div></div><span>______________________________<wbr>_________________
</span></div>gstreamer-devel mailing list
<br><div class="m_8584713559998024826m_-2698758371948032478quoted-text"><a href="http:///user/SendEmail.jtp?type=node&node=4681620&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="m_8584713559998024826m_-2698758371948032478quoted-text"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></div><a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681620.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamer-RTSP-s<wbr>rc-element-name-tp4681595p4681<wbr>620.html</a>
        </div><div class="m_8584713559998024826m_-2698758371948032478quoted-text"><div class="m_8584713559998024826m_-2698758371948032478m_8956883991239427564HOEnZb"><div class="m_8584713559998024826m_-2698758371948032478m_8956883991239427564h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Gstreamer RTSP src element name, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></div></blockquote></div><br></div></div></div><div class="m_8584713559998024826m_-2698758371948032478elided-text">


        
        
        
<br><span><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681624.html" rel="nofollow" link="external" target="_blank">Re: Gstreamer RTSP src element name</a><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="nofollow" link="external" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br></span></div><br></div><span>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></span></blockquote></div><br></div></div></div></div></div><div class="quoted-text"><span>
<br>______________________________<wbr>_________________
<br>gstreamer-devel mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4681625&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </span></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="quoted-text"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></div><a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681625.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamer-RTSP-s<wbr>rc-element-name-tp4681595p4681<wbr>625.html</a>
        </div><div class="quoted-text"><div class="m_8584713559998024826HOEnZb"><div class="m_8584713559998024826h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Gstreamer RTSP src element name, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></div></blockquote></div><br></div><div class="elided-text">


        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681626.html" target="_blank">Re: Gstreamer RTSP src element name</a><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank">GStreamer-devel mailing list archive</a> at Nabble.com.<br></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>