mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
8c37eed491
something like the following code now works: vector<string> getVideoDeviceNames() { vector<string> l_name; string property; GstElement* videodevicesrc = create_element("dshowvideosrc", "videodevicesrc"); GstPropertyProbe* probe = GST_PROPERTY_PROBE (videodevicesrc); GValueArray* va = gst_property_probe_get_values_name (probe, "device-name"); if (va) { for(size_t i=0; i < va->n_values; ++i) { GValue* v = g_value_array_get_nth(va, i); string name(g_value_get_string(v)); l_name.push_back(name); } } if (videodevicesrc) gst_object_unref(GST_OBJECT (videodevicesrc)); return l_name; } |
||
---|---|---|
.. | ||
gstdshow.cpp | ||
gstdshow.h | ||
gstdshowaudiosrc.cpp | ||
gstdshowaudiosrc.h | ||
gstdshowfakesink.cpp | ||
gstdshowfakesink.h | ||
gstdshowsrcwrapper.cpp | ||
gstdshowvideosrc.cpp | ||
gstdshowvideosrc.h | ||
Makefile.am |