Commit ceab3d5d authored by Andy Wingo Wingo's avatar Andy Wingo 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> 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.c:
* sys/oss/gstosssrc.h: Easy to implement a mixer, eh... * sys/oss/gstosssrc.h: Easy to implement a mixer, eh...
   
......
...@@ -306,9 +306,17 @@ gst_oss_src_open (GstAudioSrc * asrc) ...@@ -306,9 +306,17 @@ gst_oss_src_open (GstAudioSrc * asrc)
return FALSE; return FALSE;
} }
if (!oss->mixer) if (!oss->mixer) {
oss->mixer = gst_ossmixer_new ("/dev/mixer", GST_OSS_MIXER_CAPTURE); 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; 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