Mercurial > mplayer.hg
comparison mplayer.c @ 17643:cea08919336b
dwStart support for mplayer.
* demux_avi sets stream_delay according to dwStart
* mplayer adjusts audio_delay according to stream_delay
3 related patches are pending, and I will apply them over the next few
days if all goes well.
As I mentioned on -dev-eng, the funny indentation is in preparation for
one of those pending patches.
See:
Date: Fri, 17 Feb 2006 00:53:28 -0800
To: mplayer-dev-eng@mplayerhq.hu
Subject: [PATCH] bframes, dwStart: individual patches
author | corey |
---|---|
date | Sat, 18 Feb 2006 09:26:39 +0000 |
parents | b849a99cdc3c |
children | 16633b9c0953 |
comparison
equal
deleted
inserted
replaced
17642:64e5c4e34f07 | 17643:cea08919336b |
---|---|
2520 mixer.volstep = volstep; | 2520 mixer.volstep = volstep; |
2521 } | 2521 } |
2522 | 2522 |
2523 current_module="av_init"; | 2523 current_module="av_init"; |
2524 | 2524 |
2525 if(sh_video) sh_video->timer=0; | 2525 if(sh_video){ |
2526 if(sh_audio) sh_audio->delay=-audio_delay; | 2526 sh_video->timer=0; |
2527 audio_delay += sh_video->stream_delay; | |
2528 } | |
2529 if(sh_audio){ | |
2530 audio_delay -= sh_audio->stream_delay; | |
2531 sh_audio->delay=-audio_delay; | |
2532 } | |
2527 | 2533 |
2528 if(!sh_audio){ | 2534 if(!sh_audio){ |
2529 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_NoSound); | 2535 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_NoSound); |
2530 mp_msg(MSGT_CPLAYER,MSGL_V,"Freeing %d unused audio chunks.\n",d_audio->packs); | 2536 mp_msg(MSGT_CPLAYER,MSGL_V,"Freeing %d unused audio chunks.\n",d_audio->packs); |
2531 ds_free_packs(d_audio); // free buffered chunks | 2537 ds_free_packs(d_audio); // free buffered chunks |