summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2009-08-10 16:17:41 +0200
committerJulien Isorce <julien.isorce@gmail.com>2009-08-10 16:17:41 +0200
commitae6935e6a39a09c0b66302831e87b8af8b76c014 (patch)
treeb84c822b55841be8a3faa53142423d6c56123db5
parent67dd6694a18687271878515028578601999619ba (diff)
downloadgst-plugins-bad-ae6935e6a39a09c0b66302831e87b8af8b76c014.tar.gz
gst-plugins-bad-ae6935e6a39a09c0b66302831e87b8af8b76c014.tar.bz2
gst-plugins-bad-ae6935e6a39a09c0b66302831e87b8af8b76c014.zip
dshowaudiosrc: handles device-name property
-rwxr-xr-xsys/dshowsrcwrapper/gstdshowaudiosrc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp b/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
index 85f4afb4..f16f7478 100755
--- a/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
+++ b/sys/dshowsrcwrapper/gstdshowaudiosrc.cpp
@@ -368,6 +368,17 @@ gst_dshowaudiosrc_set_property (GObject * object, guint prop_id,
}
break;
}
+ case PROP_DEVICE_NAME:
+ {
+ if (src->device_name) {
+ g_free (src->device_name);
+ src->device_name = NULL;
+ }
+ if (g_value_get_string (value)) {
+ src->device_name = g_strdup (g_value_get_string (value));
+ }
+ break;
+ }
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;