diff options
author | Iain Holmes <iain@prettypeople.org> | 2004-10-26 11:36:53 +0000 |
---|---|---|
committer | Iain Holmes <iain@prettypeople.org> | 2004-10-26 11:36:53 +0000 |
commit | 9ac0be121668072aa314759f368e39220286c707 (patch) | |
tree | 2d8a89fd3fe80472b71fbb369faee33cbb5bc318 /sys | |
parent | e4e36e4b276ecb91424763a5a52229a04f4a7506 (diff) | |
download | gst-plugins-bad-9ac0be121668072aa314759f368e39220286c707.tar.gz gst-plugins-bad-9ac0be121668072aa314759f368e39220286c707.tar.bz2 gst-plugins-bad-9ac0be121668072aa314759f368e39220286c707.zip |
Memory leak fixes
Original commit message from CVS:
Memory leak fixes
Allow level to take mono or stereo audio
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sunaudio/gstsunaudio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/sunaudio/gstsunaudio.c b/sys/sunaudio/gstsunaudio.c index 42c8bc86..b58f1826 100644 --- a/sys/sunaudio/gstsunaudio.c +++ b/sys/sunaudio/gstsunaudio.c @@ -313,12 +313,9 @@ gst_sunaudiosink_setparams (GstSunAudioSink * sunaudiosink) static gboolean gst_sunaudiosink_open (GstSunAudioSink * sunaudiosink) { - const char *file; int fd, ret; - file = "/dev/audio"; - - fd = open (file, O_WRONLY); + fd = open (sunaudiosink->device, O_WRONLY); if (fd == -1) { /* FIXME error */ return FALSE; |