From c4aacdb8e51ceb82f11b6b608aacaffc036d1fb2 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 28 Oct 2003 20:19:13 +0000 Subject: [PATCH] oops... I broke device settings in OSS Original commit message from CVS: oops... I broke device settings in OSS --- sys/oss/gstosselement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index e4ac82a9f1..4aa491682b 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)); }