mirror of https://github.com/mpv-player/mpv
ao_mpegpes.c: minor simplification
Avoid code duplication, use the generated file name instead of generating it twice. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31870 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0c9034f030
commit
ff1da0cb35
|
@ -107,8 +107,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));
|
||||
|
|
Loading…
Reference in New Issue