#9820 closed enhancement (fixed)

v4l2_get_device_list always returns zero

Reported by: unusedsong Owned by:
Priority: minor Component: avdevice
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

In doc for avdevice_list_input_sources we can see:
@return count of autodetected devices, negative on error.

But get_device_list for v4l2 returns zero on success.
It's a little confusing.
Perhaps there should be a pointing to nb_devices field.

Change History (1)

comment:1 by Marton Balint, 22 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.