[MPlayer-cvslog] r36856 - trunk/libao2/ao_esd.c

reimar subversion at mplayerhq.hu
Sun Feb 16 16:44:32 CET 2014


Author: reimar
Date: Sun Feb 16 16:44:32 2014
New Revision: 36856

Log:
ao_esd: remove condition that must always be true.

It caused warnings about potentially uninitialized variables.

Modified:
   trunk/libao2/ao_esd.c

Modified: trunk/libao2/ao_esd.c
==============================================================================
--- trunk/libao2/ao_esd.c	Sun Feb 16 16:44:31 2014	(r36855)
+++ trunk/libao2/ao_esd.c	Sun Feb 16 16:44:32 2014	(r36856)
@@ -165,7 +165,6 @@ static int init(int rate_hz, int channel
     float lag_seconds, lag_net, lag_serv;
     struct timeval proto_start, proto_end;
 
-    if (esd_fd < 0) {
 	esd_fd = esd_open_sound(server);
 	if (esd_fd < 0) {
 	    mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_ESD_CantOpenSound,
@@ -190,7 +189,6 @@ static int init(int rate_hz, int channel
 	    esd_print_server_info(esd_svinfo);
 	}
 	*/
-    }
 
     esd_fmt = ESD_STREAM | ESD_PLAY;
 


More information about the MPlayer-cvslog mailing list