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.
This commit is contained in:
Andy Wingo 2005-08-23 14:10:05 +00:00
parent 02a32faa48
commit ceab3d5da2
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,8 @@
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.
* sys/oss/gstosssrc.c:
* sys/oss/gstosssrc.h: Easy to implement a mixer, eh...

View file

@ -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;
}