From: <he...@us...> - 2013-03-22 12:47:06
|
Revision: 1704 http://sourceforge.net/p/rdesktop/code/1704 Author: hean01 Date: 2013-03-22 12:47:03 +0000 (Fri, 22 Mar 2013) Log Message: ----------- Zero out format struct before use. Modified Paths: -------------- rdesktop/trunk/rdpsnd_libao.c Modified: rdesktop/trunk/rdpsnd_libao.c =================================================================== --- rdesktop/trunk/rdpsnd_libao.c 2013-03-22 12:38:19 UTC (rev 1703) +++ rdesktop/trunk/rdpsnd_libao.c 2013-03-22 12:47:03 UTC (rev 1704) @@ -4,6 +4,7 @@ Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 2003-2008 Copyright (C) GuoJunBo <guo...@ic...> 2003 Copyright (C) Michael Gernoth <mi...@ze...> 2005-2008 + Copyright (C) 2013 Henrik Andersson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,12 +72,12 @@ default_driver = ao_default_driver_id(); } + memset(&format, 0, sizeof(format)); format.bits = 16; format.channels = 2; format.rate = 44100; format.byte_format = AO_FMT_NATIVE; - o_device = ao_open_live(default_driver, &format, NULL); if (o_device == NULL) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |