[MPlayer-cvslog] r35565 - trunk/libao2/ao_dsound.c
reimar
subversion at mplayerhq.hu
Sun Dec 2 22:44:49 CET 2012
Author: reimar
Date: Sun Dec 2 22:44:49 2012
New Revision: 35565
Log:
Move declarations to the top of the function.
Modified:
trunk/libao2/ao_dsound.c
Modified: trunk/libao2/ao_dsound.c
==============================================================================
--- trunk/libao2/ao_dsound.c Sun Dec 2 22:40:37 2012 (r35564)
+++ trunk/libao2/ao_dsound.c Sun Dec 2 22:44:49 2012 (r35565)
@@ -416,13 +416,13 @@ static int control(int cmd, void *arg)
static int init(int rate, int channels, int format, int flags)
{
int res;
- if (!InitDirectSound()) return 0;
- // ok, now create the buffers
WAVEFORMATEXTENSIBLE wformat;
DSBUFFERDESC dsbpridesc;
DSBUFFERDESC dsbdesc;
+ if (!InitDirectSound()) return 0;
+
//check if the channel count and format is supported in general
if (channels > 6) {
UninitDirectSound();
More information about the MPlayer-cvslog
mailing list