mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
oops... I broke device settings in OSS
Original commit message from CVS: oops... I broke device settings in OSS
This commit is contained in:
parent
c304cd6e1c
commit
c4aacdb8e5
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue