<div dir="ltr"><div><div><div><div><div><div>What other options did you try? I'm wondering because I'd *really* rather not have a fake sink as that means I'll be taking the CPU time to process and then throw away each track, and my program needs all the CPU it can get...<br>
<br></div>So far I've thought of trying:<br><br></div>1) Ignore the extra pads (doesn't seem to work)<br></div>2) call gst_element_remove_pad on the pad (docs say don't do that...)<br></div>3) call gst_pad_set_active(pad,FALSE), but I suspect that is also a bad idea<br>
</div>4) add a probe to each unwanted pad that blocks and flushes all buffers on that pad.<br></div><div>5) add a fakesink (don't want to take the CPU hit).<br></div><div><br></div>Can anyone think of other options?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 1:46 PM, Paddy <span dir="ltr"><<a href="mailto:pat.blanchon@gmail.com" target="_blank">pat.blanchon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I encountered a similar problem with the rtspsrc element, which starts all<br>
streams it finds, even though I'm not at all interested in them.<br>
<br>
My solution was to create/add/sync/link a fakesink in the pad-added callback<br>
for all pads I don't care about. AFAIK there's no other way.<br>
<br>
Cheers,<br>
<br>
Paddy<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Dealing-with-unwanted-source-pads-tp4659965p4659966.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Dealing-with-unwanted-source-pads-tp4659965p4659966.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div>