mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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
2 changed files with 11 additions and 1 deletions
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>
|
||||
|
||||
* sys/sunaudio/gstsunaudiosrc.c: (gst_sunaudiosrc_open):
|
||||
|
|
|
@ -86,7 +86,7 @@ gst_sunaudiomixer_change_state (GstElement * element, GstStateChange transition)
|
|||
if (audiodev == NULL) {
|
||||
this->mixer = gst_sunaudiomixer_ctrl_new ("/dev/audioctl");
|
||||
} else {
|
||||
gchar *device = g_strdup_printf ("/dev/%sctl", audiodev);
|
||||
gchar *device = g_strdup_printf ("%sctl", audiodev);
|
||||
|
||||
this->mixer = gst_sunaudiomixer_ctrl_new (device);
|
||||
g_free (device);
|
||||
|
|
Loading…
Reference in a new issue