From 01aa3fd1be5ae498f311b6823cdd64f21c184c3c Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 26 Jul 2006 21:40:43 +0000 Subject: split the incestous intercourse between ao_mpegpes and vo_mpegpes; now the devices can be used separately git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19189 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_mpegpes.c | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_mpegpes.c b/libvo/vo_mpegpes.c index d0bd0f80d2..2e42f11ded 100644 --- a/libvo/vo_mpegpes.c +++ b/libvo/vo_mpegpes.c @@ -62,7 +62,7 @@ #include "libmpdemux/mpeg_packetizer.h" int vo_mpegpes_fd=-1; -int vo_mpegpes_fd2=-1; +extern int vo_mpegpes_fd2; static vo_info_t info = { @@ -128,10 +128,6 @@ static int preinit(const char *arg){ perror("DVB VIDEO DEVICE: "); return -1; } - if((vo_mpegpes_fd2 = open(ao_file,O_RDWR|O_NONBLOCK)) < 0){ - perror("DVB AUDIO DEVICE: "); - return -1; - } if ( (ioctl(vo_mpegpes_fd,VIDEO_SET_BLANK, false) < 0)){ perror("DVB VIDEO SET BLANK: "); return -1; @@ -140,34 +136,10 @@ static int preinit(const char *arg){ perror("DVB VIDEO SELECT SOURCE: "); return -1; } -#if 1 - if ( (ioctl(vo_mpegpes_fd2,AUDIO_SELECT_SOURCE, AUDIO_SOURCE_MEMORY) < 0)){ - perror("DVB AUDIO SELECT SOURCE: "); - return -1; - } - if ( (ioctl(vo_mpegpes_fd2,AUDIO_PLAY) < 0)){ - perror("DVB AUDIO PLAY: "); - return -1; - } -#else - if ( (ioctl(vo_mpegpes_fd2,AUDIO_STOP,0) < 0)){ - perror("DVB AUDIO STOP: "); - return -1; - } -#endif if ( (ioctl(vo_mpegpes_fd,VIDEO_PLAY) < 0)){ perror("DVB VIDEO PLAY: "); return -1; } - if ( (ioctl(vo_mpegpes_fd2,AUDIO_SET_AV_SYNC, true) < 0)){ - perror("DVB AUDIO SET AV SYNC: "); - return -1; - } -// if ( (ioctl(vo_mpegpes_fd2,AUDIO_SET_MUTE, false) < 0)){ - if ( (ioctl(vo_mpegpes_fd2,AUDIO_SET_MUTE, true) < 0)){ - perror("DVB AUDIO SET MUTE: "); - return -1; - } return 0; } #endif @@ -178,7 +150,6 @@ static int preinit(const char *arg){ perror("vo_mpegpes"); return -1; } - vo_mpegpes_fd2=vo_mpegpes_fd; return 0; } -- cgit v1.2.3