[FFmpeg-devel] [HACK] force "last message repeated" output
Michael Niedermayer
michaelni
Wed Jul 28 14:06:27 CEST 2010
On Wed, Jul 28, 2010 at 07:46:58AM +0200, Reimar D?ffinger wrote:
> On Wed, Jul 28, 2010 at 01:41:43AM +0200, Michael Niedermayer wrote:
> > On Tue, Jul 27, 2010 at 10:49:40PM +0200, Reimar D?ffinger wrote:
> > > Hello,
> > > If there's a single message repeate over and over, libavutil will not
> > > print it each time, which is nice.
> > > However, it will also not print the message indicating it was repeated
> > > if there's no other message following.
> > > Below is a hack that avoids this for ffmpeg, however better ideas are welcome.
> > > Index: ffmpeg.c
> > > ===================================================================
> > > --- ffmpeg.c (revision 24552)
> > > +++ ffmpeg.c (working copy)
> > > @@ -642,6 +642,8 @@
> > > exit (255);
> > > }
> > >
> > > + // force out any "Last message repeated" messages
> > > + av_log(NULL, AV_LOG_QUIET, "");
> > > exit(ret); /* not all OS-es handle main() return value */
> > > return ret;
> > > }
> >
> > iam ok with your hack if it works for ffplay & ffserver & all other
> > tools too
>
> It only works if I add the same hack to each tool, that's one
> of the things that makes it a hack...
should be fixed
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100728/25a04ee6/attachment.pgp>
More information about the ffmpeg-devel
mailing list