[MPlayer-cvslog] r36563 - trunk/libao2/ao_sndio.c
reimar
subversion at mplayerhq.hu
Tue Dec 31 16:31:23 CET 2013
Author: reimar
Date: Tue Dec 31 16:31:23 2013
New Revision: 36563
Log:
Merge declaration and initialization.
This matches standard MPlayer style better.
Modified:
trunk/libao2/ao_sndio.c
Modified: trunk/libao2/ao_sndio.c
==============================================================================
--- trunk/libao2/ao_sndio.c Tue Dec 31 16:31:15 2013 (r36562)
+++ trunk/libao2/ao_sndio.c Tue Dec 31 16:31:23 2013 (r36563)
@@ -188,9 +188,7 @@ static void reset(void)
*/
static void refresh(void)
{
- int n;
-
- n = sio_pollfd(hdl, pfds, POLLOUT);
+ int n = sio_pollfd(hdl, pfds, POLLOUT);
while (poll(pfds, n, 0) < 0 && errno == EINTR)
; /* nothing */
sio_revents(hdl, pfds);
@@ -219,9 +217,7 @@ static float get_delay(void)
*/
static int play(void *data, int len, int flags)
{
- int n;
-
- n = sio_write(hdl, data, len);
+ int n = sio_write(hdl, data, len);
delay += n;
return n;
}
More information about the MPlayer-cvslog
mailing list