Commit 5a274b64 authored by Martin Szulecki's avatar Martin Szulecki Committed by Tim-Philipp Müller
Browse files

sys/v4l/gstv4lelement.c: If "device-name" is requested and the device is not...

sys/v4l/gstv4lelement.c: If "device-name" is requested and the device is not open, try to temporarily open it to obta...

Original commit message from CVS:
Patch by: Martin Szulecki
* sys/v4l/gstv4lelement.c: (gst_v4lelement_get_property):
If "device-name" is requested and the device is not
open, try to temporarily open it to obtain this
information (#342494).
parent f8e63966
2006-07-19 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Martin Szulecki
* sys/v4l/gstv4lelement.c: (gst_v4lelement_get_property):
If "device-name" is requested and the device is not
open, try to temporarily open it to obtain this
information (#342494).
2006-07-19 Tim-Philipp Müller <tim at centricular dot net>
 
* gst-libs/gst/tag/gstid3tag.c:
......
......@@ -414,8 +414,12 @@ gst_v4lelement_get_property (GObject * object,
case PROP_DEVICE_NAME:{
gchar *new = NULL;
if (GST_V4L_IS_OPEN (v4lelement))
if (GST_V4L_IS_OPEN (v4lelement)) {
new = v4lelement->vcap.name;
} else if (gst_v4l_open (v4lelement)) {
new = v4lelement->vcap.name;
gst_v4l_close (v4lelement);
}
g_value_set_string (value, new);
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment