From 9ac0be121668072aa314759f368e39220286c707 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 26 Oct 2004 11:36:53 +0000 Subject: Memory leak fixes Original commit message from CVS: Memory leak fixes Allow level to take mono or stereo audio --- sys/sunaudio/gstsunaudio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/sunaudio') 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; -- cgit v1.2.1