[MPlayer-dev-eng] Patch to display the start time of a media file with -identify
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Jun 5 20:04:35 CEST 2010
On Sat, Jun 05, 2010 at 08:57:08AM -0600, Kevin DeKorte wrote:
> @@ -1239,6 +1239,7 @@
> int width;
> char *line;
> unsigned pos = 0;
> + static start_shown = 0;
Missing a type and will not work with multiple files on the commandline.
> @@ -1262,6 +1263,11 @@
> sadd_hhmmssf(line, &pos, width, len);
> saddf(line, &pos, width, ") ");
> }
> + if (!start_shown) {
> + mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_START_TIME=%6.1f\n", a_pos);
> + start_shown = 1;
> + }
> +
This also is definitely the wrong place, and it does not work with
video-only files and will also be quite questionable with files with
very different starting times for different streams.
More information about the MPlayer-dev-eng
mailing list