summaryrefslogtreecommitdiffstats
path: root/sys/oss
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-08-23 14:10:05 +0000
committerAndy Wingo <wingo@pobox.com>2005-08-23 14:10:05 +0000
commitceab3d5da2b7e9e78fc07786cd8c63ff41d8cb4c (patch)
tree0f0fc84d45532941df349f7de9d5ddacd7fb2805 /sys/oss
parent02a32faa481dfc259dad9e40b75a88f1d917d224 (diff)
sys/oss/gstosssrc.c (gst_oss_src_open): Set the device-name property after opening the mixer.
Original commit message from CVS: 2005-08-23 Andy Wingo <wingo@pobox.com> * sys/oss/gstosssrc.c (gst_oss_src_open): Set the device-name property after opening the mixer.
Diffstat (limited to 'sys/oss')
-rw-r--r--sys/oss/gstosssrc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c
index c40df24a..f65f1cf8 100644
--- a/sys/oss/gstosssrc.c
+++ b/sys/oss/gstosssrc.c
@@ -306,9 +306,17 @@ gst_oss_src_open (GstAudioSrc * asrc)
return FALSE;
}
- if (!oss->mixer)
+ if (!oss->mixer) {
oss->mixer = gst_ossmixer_new ("/dev/mixer", GST_OSS_MIXER_CAPTURE);
+ if (oss->mixer) {
+ if (oss->device_name) {
+ g_free (oss->device_name);
+ }
+ oss->device_name = g_strdup (oss->mixer->cardname);
+ }
+ }
+
return TRUE;
}