[vlc-devel] [patch] add range for --verbose

Thomas Guillem thomas at gllm.fr
Thu Feb 22 17:05:51 CET 2018


On Tue, Feb 20, 2018, at 06:14, jnqnfe at gmail.com wrote:
> --verbose, per its description (VERBOSE_TEXT and VERBOSE_LONGTEXT) has
> a range of 0-2, but this range is not enforced. This patch adds that
> missing enforcement.
> 
> This does break some plugin debug output, for instance h264 (if not
> exclusively this), which outputs even more info at greater values... Of
> course we could just simply expand the range a little to give a little
> extra room, if not wanting to force plugins into line or to use their
> own option.

Hum, not sure about this one.

The OpenGL vout display shaders with a verbose value of 4 (or 5)
The ffmepg modules display ffmpeg logs with a verbose value of 3

We don't want to break that.

> 
> ----
> 
> I notice that plugins all add +1 (+VLC_MSG_ERR) to verbosity, thus
> setting default to info+error. We could simplify this by removing the
> +1, setting the default vebosity to 1, and this new range to 1-3...
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> Email had 1 attachment:
> + verbose_range.patch
>   1k (text/x-patch)


More information about the vlc-devel mailing list