[FFmpeg-devel] [PATCH] ffprobe: print error in main() rather than in probe_file()
Clément Bœsch
ubitux at gmail.com
Fri Jan 6 20:44:56 CET 2012
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?
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120106/3b11d879/attachment.asc>
More information about the ffmpeg-devel
mailing list