<div dir="ltr">Nope you are right with that pads are actually getting created. I debugged more by increasing the debug level. Found that there is some issue with pushing data buffer. Cannot figure out what it exactly means though.<div>Attaching the logs if you can help:</div><div><br></div><div><div>0:00:16.349383662 2327 0xb30060c0 INFO GST_ELEMENT_PADS gstelement.c:643:gst_element_add_pad:<rtpptdemux1> adding pad 'src_96'</div><div>0:00:16.349645086 2327 0xb30060c0 INFO GST_PADS gstpad.c:2186:gst_pad_link_prepare: trying to link rtpptdemux1:src_96 and recv_rtp_src_1_279848886_96:proxypad9</div><div>0:00:16.349711009 2327 0xb30060c0 INFO GST_PADS gstpad.c:2388:gst_pad_link_full: linked rtpptdemux1:src_96 and recv_rtp_src_1_279848886_96:proxypad9, successful</div><div>0:00:16.349766663 2327 0xb30060c0 INFO GST_EVENT gstevent.c:1373:gst_event_new_reconfigure: creating reconfigure event</div><div>0:00:16.349919971 2327 0xb30060c0 INFO GST_ELEMENT_PADS gstelement.c:643:gst_element_add_pad:<manager> adding pad 'recv_rtp_src_1_279848886_96'</div><div>0:00:16.681462663 2327 0xb30060c0 INFO GST_PADS gstpad.c:2186:gst_pad_link_prepare: trying to link manager:recv_rtp_src_1_279848886_96 and recv_rtp_src_1_279848886_96:proxypad10</div><div>0:00:16.681531163 2327 0xb30060c0 INFO GST_PADS gstpad.c:2388:gst_pad_link_full: linked manager:recv_rtp_src_1_279848886_96 and recv_rtp_src_1_279848886_96:proxypad10, successful</div><div>0:00:16.681588625 2327 0xb30060c0 INFO GST_EVENT gstevent.c:1373:gst_event_new_reconfigure: creating reconfigure event</div><div>0:00:16.681726702 2327 0xb30060c0 INFO GST_ELEMENT_PADS gstelement.c:643:gst_element_add_pad:<rtsp-source> adding pad 'recv_rtp_src_1_279848886_96'</div><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-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>arset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)62586725174000, play-speed=(double)1, play-scale=(double)1 </div><div>here .....1 </div><div>0:00:16.682087741 2327 0xb30060c0 INFO GST_ELEMENT_PADS gstelement.c:895:gst_element_get_static_pad: found pad audio-depayer:sink</div><div>0:00:16.682160472 2327 0xb30060c0 INFO GST_PADS gstpad.c:2186:gst_pad_link_prepare: trying to link rtsp-source:recv_rtp_src_1_279848886_96 and audio-depayer:sink</div><div>0:00:16.682366550 2327 0xb30060c0 INFO GST_PADS gstpad.c:2388:gst_pad_link_full: linked rtsp-source:recv_rtp_src_1_279848886_96 and audio-depayer:sink, successful</div><div>0:00:16.682424358 2327 0xb30060c0 INFO GST_EVENT gstevent.c:1373:gst_event_new_reconfigure: creating reconfigure event</div><div> Link succeeded (type 'application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15</div><div>, mode=(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</div><div>-charset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)62586725174000, play-speed=(double)1, play-scale=(double)1').</div><div>0:00:16.683200668 2327 0xb30060c0 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event audio/mpeg, mpegversion=(int)4, stream-format=(string)raw, codec_data=(buffer)1210</div><div>0:00:16.683362207 2327 0xb30060c0 INFO GST_PADS gstpad.c:3745:gst_pad_peer_query:<audio-parser:src> pad has no peer</div><div>0:00:16.683574938 2327 0xb30060c0 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event audio/mpeg, mpegversion=(int)4, stream-format=(string)raw, codec_data=(buffer)1210, framed=(boolea</div><div>n)true, level=(string)2, base-profile=(string)lc, profile=(string)lc, rate=(int)44100, channels=(int)2</div><div>0:00:16.683692208 2327 0xb30060c0 INFO baseparse gstbaseparse.c:3585:gst_base_parse_set_passthrough:<audio-parser> passthrough: yes</div><div>0:00:17.015041706 2327 0xb30060c0 INFO GST_EVENT gstevent.c:759:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rat</div><div>e=1.000000, applied_rate=1.000000, flags=0x00, time=17:23:06.725174000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999</div><div>0:00:17.015638093 2327 0xb30060c0 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(str</div><div>ing)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, pro</div><div>file=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)625</div><div>86725174000, play-speed=(double)1, play-scale=(double)1</div><div><b>0:00:17.143650771 2327 0xb430ec00 INFO basesrc gstbasesrc.c:2841:gst_base_src_loop:<udpsrc1> pausing after gst_pad_push() = not-linked</b></div><div>0:00:17.159881511 2327 0xb430ec00 WARN basesrc gstbasesrc.c:2933:gst_base_src_loop:<udpsrc1> error: Internal data flow error.</div><div>0:00:17.175436364 2327 0xb430ec00 WARN basesrc gstbasesrc.c:2933:gst_base_src_loop:<udpsrc1> error: streaming task paused, reason not-linked (-1)</div><div>0:00:17.192878876 2327 0xb430ec00 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsrc1> posting message: Internal data flow error.</div><div>0:00:17.210512927 2327 0xb430ec00 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsrc1> posted error message: Internal data flow error.</div><div>0:00:17.228713441 2327 0xb430ec00 INFO task gsttask.c:300:gst_task_func:<udpsrc1:src> Task going to paused</div><div>0:00:17.158788123 2327 0xb430ec30 WARN rtpjitterbuffer rtpjitterbuffer.c:494:calculate_skew: delta - skew: 0:00:01.458641493 too big, reset skew</div><div>0:00:17.243162944 2327 0xb430ec30 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(str</div><div>ing)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, pro</div><div>file=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)625</div><div>86725174000, play-speed=(double)1, play-scale=(double)1</div><div>0:00:17.243837600 2327 0xb430ec30 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(str</div><div>ing)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, pro</div><div>file=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)625</div><div>86725174000, play-speed=(double)1, play-scale=(double)1</div><div>0:00:17.245265643 2327 0xb30060c0 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtp, media=(string)audio, payload=(int)96, clock-rate=(int)44100, encoding-name=(str</div><div>ing)MPEG4-GENERIC, encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)15, mode=(string)AAC-hbr, config=(string)1210, sizelength=(string)13, indexlength=(string)3, indexdeltalength=(string)3, pro</div><div>file=(string)1, a-tool=(string)"vlc\ 2.1.6", a-recvonly=(string)"", a-type=(string)broadcast, a-charset=(string)UTF-8, ssrc=(uint)279848886, clock-base=(uint)3447297483, seqnum-base=(uint)21447, npt-start=(guint64)625</div><div>86725174000, play-speed=(double)1, play-scale=(double)1</div><div>0:00:17.775943951 2327 0xb430ec30 WARN rtpjitterbuffer rtpjitterbuffer.c:494:calculate_skew: delta - skew: 0:00:02.080126874 too big, reset skew</div><div>0:00:18.401815460 2327 0xb430ec90 INFO GST_EVENT gstevent.c:759:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rat</div><div>e=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999</div><div>0:00:18.402094922 2327 0xb430ec90 INFO basesrc gstbasesrc.c:2828:gst_base_src_loop:<udpsrc5> marking pending DISCONT</div><div>0:00:18.402501115 2327 0xb430ec90 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtcp, ssrc=(uint)279848886</div><div>0:00:18.402832655 2327 0x19200 INFO GST_BUS gstbus.c:549:gst_bus_timed_pop_filtered:<bus1> we got woken up, recheck for message</div><div>0:00:18.486812322 2327 0xb430ec60 INFO GST_EVENT gstevent.c:759:gst_event_new_segment: creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rat</div><div>e=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999</div><div>0:00:18.487228515 2327 0xb430ec60 INFO basesrc gstbasesrc.c:2828:gst_base_src_loop:<udpsrc2> marking pending DISCONT</div><div>0:00:18.487556593 2327 0xb430ec60 INFO GST_EVENT gstevent.c:678:gst_event_new_caps: creating caps event application/x-rtcp, ssrc=(uint)315363940</div><div>0:00:18.487809248 2327 0x19200 INFO GST_BUS gstbus.c:549:gst_bus_timed_pop_filtered:<bus1> we got woken up, recheck for message</div><div>0:02:54.569395311 2327 0xb430ec60 INFO basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc2> pausing after gst_base_src_get_range() = eos</div><div>0:02:54.586390906 2327 0xb430ec30 INFO basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc4> pausing after gst_base_src_get_range() = eos</div><div>0:02:54.603107924 2327 0xb430ec60 INFO task gsttask.c:300:gst_task_func:<udpsrc2:src> Task going to paused</div><div>0:02:54.617068779 2327 0xb430ec90 INFO basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc5> pausing after gst_base_src_get_range() = eos</div><div>0:02:54.633440757 2327 0xb30060c0 INFO task gsttask.c:300:gst_task_func:<rtpjitterbuffer1:src> Task going to paused</div><div>0:02:54.633540296 2327 0xb430ec30 INFO task gsttask.c:300:gst_task_func:<udpsrc4:src> Task going to paused</div><div>0:02:54.662663240 2327 0xb430ec90 INFO task gsttask.c:300:gst_task_func:<udpsrc5:src> Task going to paused</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 11:30 AM, Tarun Tej K [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4681628&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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(aud<wbr>ioDepay, "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><span class=""><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></span></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(vid<wbr>eoDepay, "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!=<wbr>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_<wbr>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"><div><div class="h5">On 25-Jan-2017 11:02 AM, "rajvik" <<a href="http:///user/SendEmail.jtp?type=node&node=4681627&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<br type="attribution"></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="m_8069358388775900128quote"><div><div class="h5"><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_jitt<wbr>er_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_jitt<wbr>er_buffer_set_clock_rate: Clock rate changed from 0 to 44100</div><div class="m_8069358388775900128quoted-text"><div>name of caps struct string: application/x-rtp </div></div><div class="m_8069358388775900128quoted-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)42801<wbr>e, sprop-parameter-sets=(str</div></div><div>ing)"Z0KAHpZWDY/yf/gACAAKhAAAD<wbr>6QAA6mDgAAC3GAAFuNvxjg7QsXc\,<wbr>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)60293455191<wbr>000, play-speed=(double)1, play-scale=(double)1 </div><div class="m_8069358388775900128quoted-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-GE<wbr>NERIC, 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)60293455191<wbr>000, 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_src<wbr>_loop:<udpsrc4> error: Internal data flow error.</div><div>0:00:00.733348867 2163 0xb440e180 WARN basesrc gstbasesrc.c:2933:gst_base_src<wbr>_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="m_8069358388775900128quoted-text"><div>static void onPadAdded(GstElement *element, GstPad *pad, gpointer data)</div><div>{</div></div><div>#if 1</div><div class="m_8069358388775900128quoted-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(aud<wbr>ioDepay, "sink");</div><div class="m_8069358388775900128quoted-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(vid<wbr>eoDepay, "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></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_8069358388775900128quoted-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' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">
<div dir="auto"><div class="m_8069358388775900128quoted-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="m_8069358388775900128quoted-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="m_8069358388775900128elided-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' style="border-left:2px solid #cccccc;padding:0 1em" class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478quote"><div class="m_8069358388775900128elided-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_8069358388775900128m_8584713559998024826h5"><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_8069358388775900128m_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' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="m_8069358388775900128m_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_8069358388775900128m_8584713559998024826m_-2698758371948032478m_8956883991239427564h5"><div class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478m_8956883991239427564m_624516158085767003shrinkable-quote"><div class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478m_8956883991239427564shrinkable-quote"><div class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478shrinkable-quote"><div class="m_8069358388775900128m_8584713559998024826shrinkable-quote"><div class="m_8069358388775900128shrinkable-quote"><div class='shrinkable-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
</div><div class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478quoted-text"><a href="http:///user/SendEmail.jtp?type=node&node=4681620&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
</div><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_8069358388775900128m_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_8069358388775900128m_8584713559998024826m_-2698758371948032478quoted-text"><div class="m_8069358388775900128m_8584713559998024826m_-2698758371948032478m_8956883991239427564HOEnZb"><div class="m_8069358388775900128m_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" target="_top">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_8069358388775900128m_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="m_8069358388775900128quoted-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="m_8069358388775900128quoted-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="m_8069358388775900128quoted-text"><div class="m_8069358388775900128m_8584713559998024826HOEnZb"><div class="m_8069358388775900128m_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" target="_top">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="m_8069358388775900128elided-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" 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></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="http:///user/SendEmail.jtp?type=node&node=4681627&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></div></div></blockquote></div><br></div></div></div><div><div class="h5">
<br>______________________________<wbr>_________________
<br>gstreamer-devel mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4681627&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-<wbr>devel</a><br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
</div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div><div class="h5">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</div></div><a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-src-element-name-tp4681595p4681627.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamer-RTSP-<wbr>src-element-name-<wbr>tp4681595p4681627.html</a>
</div><div class="HOEnZb"><div class="h5">
<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 href="" target="_blank" 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" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br></div>
<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-tp4681595p4681628.html">Re: Gstreamer RTSP src element name</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>