summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-28 20:19:13 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-10-28 20:19:13 +0000
commitc4aacdb8e51ceb82f11b6b608aacaffc036d1fb2 (patch)
treedcec18a5307cd5d1b8fba9f5f63b090c59aaa9e0 /sys
parentc304cd6e1c5ccd47a96cbf64158039dac491f1b8 (diff)
oops... I broke device settings in OSS
Original commit message from CVS: oops... I broke device settings in OSS
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstosselement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c
index e4ac82a9..4aa49168 100644
--- a/sys/oss/gstosselement.c
+++ b/sys/oss/gstosselement.c
@@ -608,7 +608,7 @@ gst_osselement_set_property (GObject *object,
case ARG_DEVICE:
/* disallow changing the device while it is opened
get_property("device") should return the right one */
- if (gst_element_get_state (GST_ELEMENT (oss)) != GST_STATE_NULL) {
+ if (gst_element_get_state (GST_ELEMENT (oss)) == GST_STATE_NULL) {
g_free (oss->device);
oss->device = g_strdup (g_value_get_string (value));
}
@@ -616,7 +616,7 @@ gst_osselement_set_property (GObject *object,
case ARG_MIXERDEV:
/* disallow changing the device while it is opened
get_property("mixerdev") should return the right one */
- if (gst_element_get_state (GST_ELEMENT (oss)) != GST_STATE_NULL) {
+ if (gst_element_get_state (GST_ELEMENT (oss)) == GST_STATE_NULL) {
g_free (oss->mixer_dev);
oss->mixer_dev = g_strdup (g_value_get_string (value));
}