sys/sunaudio/gstsunaudiomixer.c: Construct the correct mixer device name when the AUDIODEV env var is set.
Original commit message from CVS: * sys/sunaudio/gstsunaudiomixer.c: (gst_sunaudiomixer_change_state): Construct the correct mixer device name when the AUDIODEV env var is set. Patch by: Jerry Tan <jerry.tan at sun dot com> Fixes: #383596
This commit is contained in:
parent
6c58a6baea
commit
f3df7a85e4
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2006-12-08 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* sys/sunaudio/gstsunaudiomixer.c:
|
||||||
|
(gst_sunaudiomixer_change_state):
|
||||||
|
Construct the correct mixer device name when the AUDIODEV env var
|
||||||
|
is set.
|
||||||
|
|
||||||
|
Patch by: Jerry Tan <jerry.tan at sun dot com>
|
||||||
|
Fixes: #383596
|
||||||
|
|
||||||
2006-12-08 Jan Schmidt <thaytan@mad.scientist.com>
|
2006-12-08 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* sys/sunaudio/gstsunaudiosrc.c: (gst_sunaudiosrc_open):
|
* sys/sunaudio/gstsunaudiosrc.c: (gst_sunaudiosrc_open):
|
||||||
|
@ -86,7 +86,7 @@ gst_sunaudiomixer_change_state (GstElement * element, GstStateChange transition)
|
|||||||
if (audiodev == NULL) {
|
if (audiodev == NULL) {
|
||||||
this->mixer = gst_sunaudiomixer_ctrl_new ("/dev/audioctl");
|
this->mixer = gst_sunaudiomixer_ctrl_new ("/dev/audioctl");
|
||||||
} else {
|
} else {
|
||||||
gchar *device = g_strdup_printf ("/dev/%sctl", audiodev);
|
gchar *device = g_strdup_printf ("%sctl", audiodev);
|
||||||
|
|
||||||
this->mixer = gst_sunaudiomixer_ctrl_new (device);
|
this->mixer = gst_sunaudiomixer_ctrl_new (device);
|
||||||
g_free (device);
|
g_free (device);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user