summaryrefslogtreecommitdiffstats
path: root/sys/oss4/oss4-mixer.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-05-22 15:14:26 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-05-22 15:14:26 +0000
commit80ef4ca4d7449550b2c5aa05d55d7c697a7c1fab (patch)
tree800d89d8acdb6af889aa56d44253c3d1f889684c /sys/oss4/oss4-mixer.c
parentb3bc29bc641b8a4c380d100b60d709aa08e61f28 (diff)
downloadgst-plugins-bad-80ef4ca4d7449550b2c5aa05d55d7c697a7c1fab.tar.gz
gst-plugins-bad-80ef4ca4d7449550b2c5aa05d55d7c697a7c1fab.tar.bz2
gst-plugins-bad-80ef4ca4d7449550b2c5aa05d55d7c697a7c1fab.zip
sys/oss4/: Make device-name probing in NULL state work better (e.g. for the gnome-control-center sound capplet).
Original commit message from CVS: * sys/oss4/oss4-mixer.c: (gst_oss4_mixer_open): * sys/oss4/oss4-property-probe.c: (gst_oss4_property_probe_find_device_name), (gst_oss4_property_probe_find_device_name_nofd): * sys/oss4/oss4-property-probe.h: * sys/oss4/oss4-sink.c: (gst_oss4_sink_get_property): * sys/oss4/oss4-source.c: (gst_oss4_source_get_property): Make device-name probing in NULL state work better (e.g. for the gnome-control-center sound capplet).
Diffstat (limited to 'sys/oss4/oss4-mixer.c')
-rw-r--r--sys/oss4/oss4-mixer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/oss4/oss4-mixer.c b/sys/oss4/oss4-mixer.c
index 62e271e5..8970e0fd 100644
--- a/sys/oss4/oss4-mixer.c
+++ b/sys/oss4/oss4-mixer.c
@@ -303,6 +303,9 @@ open_failed:
GST_ELEMENT_ERROR (mixer, RESOURCE, OPEN_READ_WRITE,
(_("Could not open audio device for mixer control handling.")),
GST_ERROR_SYSTEM);
+ } else {
+ GST_DEBUG_OBJECT (mixer, "open failed: %s (ignoring errors)",
+ g_strerror (errno));
}
g_free (device);
return FALSE;
@@ -315,6 +318,8 @@ legacy_oss:
(_("Could not open audio device for mixer control handling."
"This version of the Open Sound System is not supported by this "
"element.")), ("Try the 'ossmixer' element instead"));
+ } else {
+ GST_DEBUG_OBJECT (mixer, "open failed: legacy oss (ignoring errors)");
}
g_free (device);
return FALSE;