[MPlayer-dev-eng] [PATCH] Add size based support for -endpos in MPlayer
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Jun 11 17:07:50 CEST 2011
On Sat, Jun 11, 2011 at 04:45:00PM +0200, Clément Bœsch wrote:
> @@ -3802,8 +3816,7 @@
> if (!quiet)
> print_status(a_pos, 0, 0);
>
> - if (end_at.type == END_AT_TIME && end_at.pos < a_pos ||
> - end_at.type == END_AT_SIZE && end_at.pos < stream_tell(mpctx->stream))
> + if (is_at_end(mpctx, &end_at))
> mpctx->eof = PT_NEXT_ENTRY;
You should also update the
if ((!quiet || end_at.type == END_AT_TIME) && mpctx->sh_audio)
condition right above I think.
Though note that the update_subtitles also uses a_pos, so that should
be updated to
if (mpctx->sh_audio).
Since that's a rather unrelated bug-fix I just applied that ;-)
More information about the MPlayer-dev-eng
mailing list