[MPlayer-cvslog] r31870 - trunk/libao2/ao_mpegpes.c

reimar subversion at mplayerhq.hu
Fri Jul 30 20:18:03 CEST 2010


Author: reimar
Date: Fri Jul 30 20:18:03 2010
New Revision: 31870

Log:
Avoid code duplication, use the generate file name instead of generating it twice.

Modified:
   trunk/libao2/ao_mpegpes.c

Modified: trunk/libao2/ao_mpegpes.c
==============================================================================
--- trunk/libao2/ao_mpegpes.c	Fri Jul 30 20:14:35 2010	(r31869)
+++ trunk/libao2/ao_mpegpes.c	Fri Jul 30 20:18:03 2010	(r31870)
@@ -108,8 +108,8 @@ static int freq_id=0;
 static int init_device(int card)
 {
 	char ao_file[30];
-	mp_msg(MSGT_VO,MSGL_INFO, "Opening /dev/dvb/adapter%d/audio0\n", card);
 	sprintf(ao_file, "/dev/dvb/adapter%d/audio0", card);
+	mp_msg(MSGT_VO,MSGL_INFO, "Opening %s\n", ao_file);
 	if((vo_mpegpes_fd2 = open(ao_file,O_RDWR|O_NONBLOCK)) < 0)
 	{
         	mp_msg(MSGT_VO, MSGL_ERR, "DVB AUDIO DEVICE: %s\n", strerror(errno));


More information about the MPlayer-cvslog mailing list