Hello,<br><br>If I am right there is only one srcpad that can be created by elements using pushsrc baseclass. There could be 2 ways of having 2 srcpads, <br>1) Create a Capture bin with 2 v4l2src elements (Better option)<br>
2) Rewrite the v4l2src element to not use pushsrc (not suggested)<br><br>Not sure if there are more options.<br><br>Regards<br>kapil  <br><br><div class="gmail_quote">On Sun, Jul 11, 2010 at 11:25 AM, Hu, Gang A <span dir="ltr">&lt;<a href="http://gang.a.hu">gang.a.hu</a>@<a href="http://intel.com">intel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>
<font face="Calibri, sans-serif" size="2">
<div style="text-align: justify;">Hi, </div>
<div style="text-align: justify;">In my platform, there are two data streams from the camera, one(/dev/video0) is for view finder and the other(/dev/video1) is for image and video capture. </div>
<div style="text-align: justify;">My original design is to use a modified v4l2src and add one source pad tor v4l2src to support dual stream support. V4l2src read data from /dev/video0 and /dev/video1 and push the data stream to source pad0 and source pad1.
</div>
<div style="text-align: justify;">As V4l2src is inherited from pushsrc, and there is only one source pad in v4l2src, is it possible to add the other source pad without modifying the pushsrc? What should I take care if I need to design that way? How to set
the getrange function for the new added source pad? </div>
<div style="text-align: justify;">Many thanks.</div>
<div style="text-align: justify;"><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify;">Best Regards!</div>
<div style="text-align: justify;"><font color="#404040" face="Jokerman, fantasy"><i>Hu Gang</i></font></div>
<div style="text-align: justify;"><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify;"><font face="Times New Roman, serif"> </font></div>
<div style="text-align: justify;"><font face="Times New Roman, serif"> </font></div>
</font>
</div>

<br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Sprint<br>
What will you do first with EVO, the first 4G phone?<br>
Visit <a href="http://sprint.com/first" target="_blank">sprint.com/first</a> -- <a href="http://p.sf.net/sfu/sprint-com-first" target="_blank">http://p.sf.net/sfu/sprint-com-first</a><br>_______________________________________________<br>

gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>twitter handle: @gst_kaps<br><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>