[MPlayer-dev-eng] [PATCH] (trivial) make stream_dvd.c print current DVD title
Nico Sabbi
nicola_sabbi at fastwebnet.it
Fri Oct 6 21:06:45 CEST 2006
Corey Hickey wrote:
> Hello,
>
> The attached patch adds ID_DVD_CURRENT_TITLE to the "-identify" output
> printed by stream_dvd.c. This is useful for running mplayer within
> scripts when the title number is not explicity specified, as in dvd://
> or dvd://1-5.
>
> As far as I know I'm not duplicating existing functionality; if I am,
> say so.
>
> -Corey
>
>------------------------------------------------------------------------
>
>Index: stream/stream_dvd.c
>===================================================================
>--- stream/stream_dvd.c (revision 20086)
>+++ stream/stream_dvd.c (working copy)
>@@ -649,6 +649,7 @@
> m_struct_free(&stream_opts,opts);
> return STREAM_UNSUPORTED;
> }
>+ mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_DVD_CURRENT_TITLE=%d\n", dvd_title);
> --dvd_title; // remap 1.. -> 0..
> /**
> * Make sure the chapter number is valid for this title.
>
>
>------------------------------------------------------------------------
>
ok
More information about the MPlayer-dev-eng
mailing list