summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-09 16:20:41 +0000
committermswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-09 16:20:41 +0000
commite13278dc4921fc766a71e6d75a7af073ad2f19e6 (patch)
treeb85d0f956cae07273bde824c57ea93b38ed51098 /libvo
parent17ed49211b91f906bfb1c71d3b422b689f5b5a6c (diff)
downloadmpv-e13278dc4921fc766a71e6d75a7af073ad2f19e6.tar.bz2
mpv-e13278dc4921fc766a71e6d75a7af073ad2f19e6.tar.xz
Reverted to accurate but glitchy sync...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4064 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_dxr3.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 30e5e5235e..1d685501e4 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -56,10 +56,6 @@ static int fd_video = -1;
static int fd_spu = -1;
static int ioval = 0;
-struct {
- int se_version;
-} conf_s;
-
static vo_info_t vo_info =
{
"DXR3/H+ video out",
@@ -72,25 +68,17 @@ static vo_info_t vo_info =
void write_dxr3( rte_context* context, void* data, size_t size, void* user_data )
{
size_t data_left = size;
- if(!conf_s.se_version) if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
+ if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
printf( "VO: [dxr3] Unable to set pts\n" );
while( data_left )
data_left -= write( fd_video, (void*) data+(size-data_left), data_left );
}
#endif
-void parseconfig( )
-{
- conf_s.se_version = 0;
- if(vo_subdevice == NULL) return;
- conf_s.se_version = 1;
-}
-
static uint32_t init(uint32_t scr_width, uint32_t scr_height, uint32_t width, uint32_t height, uint32_t fullscreen, char *title, uint32_t format)
{
int tmp1,tmp2;
- parseconfig();
fd_control = open( "/dev/em8300", O_WRONLY );
if( fd_control < 1 )
{
@@ -111,11 +99,6 @@ static uint32_t init(uint32_t scr_width, uint32_t scr_height, uint32_t width, ui
return -1;
}
- if(!conf_s.se_version)
- printf( "VO: [dxr3] Using hardware sync\n" );
- else
- printf( "VO: [dxr3] Using software sync\n" );
-
/* Subpic code isn't working yet, don't set to ON
unless you are really sure what you are doing */
ioval = EM8300_SPUMODE_OFF;
@@ -307,7 +290,7 @@ static uint32_t draw_frame(uint8_t * src[])
vo_mpegpes_t *p=(vo_mpegpes_t *)src[0];
size_t data_left = p->size;
- if(!conf_s.se_version) if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&vo_pts) < 0)
+ if(ioctl(fd_video,EM8300_IOCTL_VIDEO_SETPTS,&p->timestamp) < 0)
printf( "VO: [dxr3] Unable to set pts\n" );
while( data_left )
@@ -426,7 +409,6 @@ query_format(uint32_t format)
#else
else printf( "VO: [dxr3] You have disabled libmp1e support, you won't be able to play this format!\n" );
#endif
- if(!conf_s.se_version && flag) flag |= 256;
return flag;
}