Am 28.04.15 um 16:49 schrieb Daniel Ly:
> This makes avdevice_list_input_sources() available for
> device_name = "avfoundation". avf_read_header is retrofitted
> to use the new method.
> 
> Signed-off-by: Daniel Ly <nal...@gmail.com>
> ---
>  libavdevice/avfoundation.m | 139 
> +++++++++++++++++++++++++++++++++------------
>  1 file changed, 104 insertions(+), 35 deletions(-)
> 
> [...]

Unfortunately, I think this is misdesigned. I suggest to do the following 
instead:

- add a AVDeviceInfoList to AVFContext
- in read_header() or get_device_list() fill this AVDeviceInfoList if not yet
present
- in get_device_list() copy/reference the AVFContext.AVDeviceInfoList into the
output
- in read_header() just cycle through the AVFContext.AVDeviceInfoList to print
it out if -list_devices has been set

This will need some new lines of code for handling device indices, though.

-Thilo


_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to