[MPlayer-dev-eng] [PATCH] unifying handling of -chapter

Nico Sabbi Nicola.Sabbi at poste.it
Sat Feb 9 23:00:38 CET 2008


Attached patch moves the handling of -chapter to mplayer.c
(and next to mencoder.c) calling demux_seek_chapter() if
dvd_chapter > 0 and ending the playback of the current title
when the current chapter when it's beyond the last chapter
specified.
I'm almost tempted to move the code to demux_open() and
demux_fill_buffer() but the resulting code wouldn't look
very clean.

What gets lost with this patch applied is the ability to -streamdump
specific chapters from dvd streams, but there are better tools
to do the job.

Comments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapters.diff
Type: text/x-diff
Size: 5062 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080209/993ede89/attachment.diff>


More information about the MPlayer-dev-eng mailing list