From ceab3d5da2b7e9e78fc07786cd8c63ff41d8cb4c Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 23 Aug 2005 14:10:05 +0000 Subject: [PATCH] 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 * sys/oss/gstosssrc.c (gst_oss_src_open): Set the device-name property after opening the mixer. --- ChangeLog | 3 +++ sys/oss/gstosssrc.c | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4a8aa2b..4123199 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-08-23 Andy Wingo + * sys/oss/gstosssrc.c (gst_oss_src_open): Set the device-name + property after opening the mixer. + * sys/oss/gstosssrc.c: * sys/oss/gstosssrc.h: Easy to implement a mixer, eh... diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index c40df24..f65f1cf 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; } -- 2.7.4