[FFmpeg-devel] [PATCH] ffprobe: print error in main() rather than in probe_file()

Stefano Sabatini stefasab at gmail.com
Fri Jan 6 21:18:53 CET 2012


On date Friday 2012-01-06 20:44:56 +0100, Clément Bœsch encoded:
> On Fri, Jan 06, 2012 at 07:14:13PM +0100, Stefano Sabatini wrote:
> > Also move header and trailer print from probe_file() to main().
> > 
> > This allows to show print information also if there is no file
> > information to show.
> > ---
> >  ffprobe.c |   10 ++++++----
> >  1 files changed, 6 insertions(+), 4 deletions(-)
> > 
> > diff --git a/ffprobe.c b/ffprobe.c
> > index dabbbc5..eea3d2c 100644
> > --- a/ffprobe.c
> > +++ b/ffprobe.c
> [...]
> > @@ -1528,6 +1526,10 @@ int main(int argc, char **argv)
> >          } else
> >              ret = probe_file(wctx, input_filename);
> >  
> > +        if (ret < 0)
> > +            show_error(wctx, ret);
> > +
> 
> do_show_error isn't used anymore?

Up.
-- 
FFmpeg = Faithless & Furious Moronic Pitiful Extroverse Gangster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ffprobe-print-error-in-main-rather-than-in-probe_fil.patch
Type: text/x-diff
Size: 1656 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120106/dcf36483/attachment.bin>


More information about the ffmpeg-devel mailing list