Commit ceab3d5d authored by Andy Wingo's avatar Andy Wingo
Browse files

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.
parent 02a32faa
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment