mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
02a32faa48
commit
ceab3d5da2
2 changed files with 12 additions and 1 deletions
|
@ -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...
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue