mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
Removed hardware syncing support. Actually movies seem to run much smoother without it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3388 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8fe59779d3
commit
ba73fc159f
@ -207,8 +207,6 @@ static int get_space()
|
|||||||
// return: number of bytes played
|
// return: number of bytes played
|
||||||
static int play(void* data,int len,int flags)
|
static int play(void* data,int len,int flags)
|
||||||
{
|
{
|
||||||
if( ioctl( fd_audio, EM8300_IOCTL_AUDIO_SETPTS, &ao_data.pts ) < 0 )
|
|
||||||
printf( "AO: [dxr3] Unable to set PTS\n" );
|
|
||||||
if( ao_data.samplerate < 44100 )
|
if( ao_data.samplerate < 44100 )
|
||||||
{
|
{
|
||||||
int i,j,ratio,len2;
|
int i,j,ratio,len2;
|
||||||
|
@ -68,8 +68,6 @@ static vo_info_t vo_info =
|
|||||||
|
|
||||||
void write_dxr3( rte_context* context, void* data, size_t size, void* user_data )
|
void write_dxr3( rte_context* context, void* data, size_t size, void* user_data )
|
||||||
{
|
{
|
||||||
if( ioctl( fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts ) < 0 )
|
|
||||||
printf( "VO: [dxr3] Unable to set video PTS\n" );
|
|
||||||
write( fd_video, data, size );
|
write( fd_video, data, size );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,9 +266,6 @@ static uint32_t draw_frame(uint8_t * src[])
|
|||||||
int data_left;
|
int data_left;
|
||||||
vo_mpegpes_t *p=(vo_mpegpes_t *)src[0];
|
vo_mpegpes_t *p=(vo_mpegpes_t *)src[0];
|
||||||
|
|
||||||
if( ioctl( fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts ) < 0 )
|
|
||||||
printf( "VO: [dxr3] Unable to set video PTS\n" );
|
|
||||||
|
|
||||||
data_left = p->size;
|
data_left = p->size;
|
||||||
while( data_left )
|
while( data_left )
|
||||||
data_left -= write( fd_video, &((unsigned char*)p->data)[p->size-data_left], data_left );
|
data_left -= write( fd_video, &((unsigned char*)p->data)[p->size-data_left], data_left );
|
||||||
|
Loading…
Reference in New Issue
Block a user