[MPlayer-dev-eng] [PATCH] Allow EDL's to work better with DVD's

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Apr 20 20:23:07 CEST 2012


On Thu, Apr 19, 2012 at 06:27:38PM -0600, Roger Pack wrote:
> Another another patch that allows seeks within DVD's to be "more precise":
> 
> Let me know if you want them all combined into one larger patch or the like.
> -roger-
> 
> 
> diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c
> index cff605b..231e9de 100644
> --- a/libmpdemux/demuxer.c
> +++ b/libmpdemux/demuxer.c
> @@ -1349,7 +1349,7 @@ int demux_seek(demuxer_t *demuxer, float
> rel_seek_secs, float audio_delay,
>      else {
>          if (demuxer->stream_pts == MP_NOPTS_VALUE)
>              goto dmx_seek;
> -        pts = demuxer->stream_pts;
> +        pts = demuxer_get_current_time(demuxer);

How can this make a difference? This code is only reachable when
demuxer->stream_pts != MP_NOPTS_VALUE, in which case
demuxer_get_current_time just returns demuxer->stream_pts,
so there should not be the slightest change in behaviour...


More information about the MPlayer-dev-eng mailing list