[FFmpeg-devel] [PATCH 2/2] opts: add list device sources/sinks options

Michael Niedermayer michaelni at gmx.at
Fri Oct 24 23:13:01 CEST 2014


On Fri, Oct 24, 2014 at 10:08:21PM +0200, Lukasz Marek wrote:
> On 22.10.2014 02:02, Michael Niedermayer wrote:
> >
> >it seems the only use of this function is under #if CONFIG_AVDEVICE
> >so the fallback shouldnt be needed
> >same for the other function
> >
> >also mising documentation and example in docs
> 
> Updated patch is attached.
> 

[...]
> index 7b6afba..18027d2 100644
> --- a/doc/fftools-common-opts.texi
> +++ b/doc/fftools-common-opts.texi
> @@ -138,6 +138,22 @@ Show channel names and standard channel layouts.
>  @item -colors
>  Show recognized color names.
>  
> + at item -sources @var{device}[, at var{opt1}=@var{val1}[, at var{opt2}=@var{val2}]...]
> +Show autodetected sources of the intput device.
> +Some devices may provide system-dependent source names that cannot be autodetected.

> +The returned list cannot be assumed to be always completed.

complete


> + at example
> +ffmpeg -sources pulse,server=192.168.0.4
> + at end example
> +
> + at item -sinks @var{device}[, at var{opt1}=@var{val1}[, at var{opt2}=@var{val2}]...]
> +Show autodetected sinks of the output device.
> +Some devices may provide system-dependent sink names that cannot be autodetected. 

> +The returned list cannot be assumed to be always completed.

complete

i wonder if some of the code can be factorized/simplifed but either
way it LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141024/ebd3e3cb/attachment.asc>


More information about the ffmpeg-devel mailing list