# HG changeset patch # User reimar # Date 1280513883 0 # Node ID 9fdee6f9692527f4ca1a6e515b18630321d4c8d8 # Parent 55dacfca4a43335d9e582bcfc14021fa161573fb Avoid code duplication, use the generate file name instead of generating it twice. diff -r 55dacfca4a43 -r 9fdee6f96925 libao2/ao_mpegpes.c --- a/libao2/ao_mpegpes.c Fri Jul 30 18:14:35 2010 +0000 +++ b/libao2/ao_mpegpes.c Fri Jul 30 18:18:03 2010 +0000 @@ -108,8 +108,8 @@ 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));