<div>Hi,</div>
<div>I also tried the same code but getting some linking errors. I have linked with the following libraries: libgio-2.0, libglib-2.0, libgmodule-2.0, libgobject-2.0, libgstbase-0.10, libgstcontroller-0.10 and libgstreamer-0.10. What I am missing? Thanks in advance for your help. The error logs is as below:</div>
<div> </div>
<p class="MsoNormal"><font size="5" face="Courier New"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 16pt">video_stream.obj : error LNK2019: unresolved external symbol _gst_property_probe_get_values_name referenced in function "void __cdecl chek_vid_dev(void)" (?chek_vid_dev@@YAXXZ)</span></font></p>
<p class="MsoNormal"><font size="5" face="Courier New"><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 16pt">video_stream.obj : error LNK2019: unresolved external symbol _gst_property_probe_get_type referenced in function "void __cdecl chek_vid_dev(void)" (<a href="mailto:?chek_vid_dev@@YAXXZ">?chek_vid_dev@@YAXXZ</a>)</span></font></p>
<p class="MsoNormal"><font size="5" face="Arial"><span style="FONT-FAMILY: Arial; FONT-SIZE: 16pt"></span></font> </p>
<div>Regards,</div>
<div>Sumit<br><br></div>
<div class="gmail_quote">On Fri, Feb 12, 2010 at 4:39 AM, Francis Rammeloo <span dir="ltr"><<a href="mailto:francis.rammeloo@gmail.com">francis.rammeloo@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">That seems to work well. Thanks :)<br><br>2010/2/11 Julien Isorce <<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>>:<br>
<div>
<div></div>
<div class="h5">> Hi,<br>><br>><br>> Something like that:<br>><br>> #include <gst/interfaces/propertyprobe.h><br>><br>> GstElement* videodevicesrc = create_element("dshowvideosrc", NULL);<br>
> GstPropertyProbe* probe = GST_PROPERTY_PROBE (videodevicesrc);<br>> GValueArray* va = gst_property_probe_get_values_name (probe, "device-name");<br>> for(guint i=0; i < va->n_values; ++i) {<br>> GValue* v = g_value_array_get_nth(va, i);<br>
> g_print ("one more device: %s\n", g_value_get_string(v));<br>> }<br>> gst_element_set_state (videodevicesrc, GST_STATE_NULL);<br>> gst_object_unref(GST_OBJECT (videodevicesrc));<br>><br>><br>
> 2010/2/10 Francis Rammeloo <<a href="mailto:francis.rammeloo@gmail.com">francis.rammeloo@gmail.com</a>><br>>><br>>> I am using the directshowsrc for capturing a camera source. If there<br>>> is only one camera it works out of the box without requiring me to<br>
>> specify a device-name. However when multiple cameras are connected<br>>> then I need some way of enumerating the device names. Does GStreamer<br>>> provide such a mechanism (similar to DirectShow's System Device<br>
>> Enumerator)?<br>>><br>>><br>>> Grts,<br>>> Francis<br>>><br>>><br>>> ------------------------------------------------------------------------------<br>>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,<br>
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW<br>>> <a href="http://p.sf.net/sfu/solaris-dev2dev" target="_blank">http://p.sf.net/sfu/solaris-dev2dev</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>><br>> ------------------------------------------------------------------------------<br>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,<br>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW<br>
> <a href="http://p.sf.net/sfu/solaris-dev2dev" target="_blank">http://p.sf.net/sfu/solaris-dev2dev</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>><br><br>------------------------------------------------------------------------------<br>
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,<br>Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW<br><a href="http://p.sf.net/sfu/solaris-dev2dev" target="_blank">http://p.sf.net/sfu/solaris-dev2dev</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>
</div></div></blockquote></div><br>