summaryrefslogtreecommitdiffstats
path: root/ext/metadata/metadataparsejpeg.c
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2009-08-10 16:35:36 +0200
committerJulien Isorce <julien.isorce@gmail.com>2009-08-10 16:35:36 +0200
commit8c37eed49162a3006753de0253d66bab3fabbf9b (patch)
tree12c1c52ea7dd77386272dd45134c15c6a98563df /ext/metadata/metadataparsejpeg.c
parentae6935e6a39a09c0b66302831e87b8af8b76c014 (diff)
downloadgst-plugins-bad-8c37eed49162a3006753de0253d66bab3fabbf9b.tar.gz
gst-plugins-bad-8c37eed49162a3006753de0253d66bab3fabbf9b.tar.bz2
gst-plugins-bad-8c37eed49162a3006753de0253d66bab3fabbf9b.zip
dshowsrcwrapper: can list more than 1 device
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; }
Diffstat (limited to 'ext/metadata/metadataparsejpeg.c')
0 files changed, 0 insertions, 0 deletions