1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00
FFmpeg/libavdevice
Marton Balint 83feded492 avdevice/avdevice: fix return value of avdevice_list_devices()
According to API docs avdevice_list_devices(), avdevice_list_input_sources()
and avdevice_list_input_sinks() should return the number of autodetected
devices on success. This is redundant with AVDeviceInfoList->nb_devices so it
was not noticed earlier that none of the underlying device list functions work
like that.

Let's fix it in generic code to make it in line with the API docs.

Fixes ticket #9820.

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 64f04df379)
2022-07-17 22:12:31 +02:00
..
tests
.gitignore
alldevices.c
alsa_dec.c
alsa_enc.c av(format|device): Add const to muxer packet data pointers 2022-07-09 19:37:53 +02:00
alsa.c configure: Use a separate config_components.h header for $ALL_COMPONENTS 2022-03-16 14:12:49 +02:00
alsa.h
android_camera.c
audiotoolbox.m
avdevice.c avdevice/avdevice: fix return value of avdevice_list_devices() 2022-07-17 22:12:31 +02:00
avdevice.h Keep including the full version.h when headers are included externally 2022-03-19 00:01:57 +02:00
avdeviceres.rc
avfoundation.m
bktr.c
caca.c
decklink_common_c.h
decklink_common.cpp
decklink_common.h
decklink_dec_c.c
decklink_dec.cpp
decklink_dec.h
decklink_enc_c.c
decklink_enc.cpp
decklink_enc.h
dshow_capture.h
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
dshow.c avdevice/dshow: reuse unused variables. 2022-05-12 22:06:44 -03:00
fbdev_common.c
fbdev_common.h
fbdev_dec.c
fbdev_enc.c av(format|device): Add const to muxer packet data pointers 2022-07-09 19:37:53 +02:00
file_open.c
gdigrab.c
iec61883.c configure: Use a separate config_components.h header for $ALL_COMPONENTS 2022-03-16 14:12:49 +02:00
internal.h
jack.c
kmsgrab.c
lavfi.c
libavdevice.v
libcdio.c avformat/demux: Add new demux.h header 2022-05-10 07:37:38 +02:00
libdc1394.c
Makefile lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
openal-dec.c
opengl_enc_shaders.h
opengl_enc.c avformat/internal: Move muxing-only functions to new mux.h header 2022-05-10 07:27:01 +02:00
oss_dec.c avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
oss_enc.c av(format|device): Add const to muxer packet data pointers 2022-07-09 19:37:53 +02:00
oss.c avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
oss.h avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
pulse_audio_common.c
pulse_audio_common.h
pulse_audio_dec.c avdevice/pulse_audio_dec: deprecate frame_size option 2022-06-16 21:28:20 +02:00
pulse_audio_enc.c avformat/internal: Move muxing-only functions to new mux.h header 2022-05-10 07:27:01 +02:00
reverse.c
sdl2.c
sndio_dec.c
sndio_enc.c av(format|device): Add const to muxer packet data pointers 2022-07-09 19:37:53 +02:00
sndio.c
sndio.h
timefilter.c
timefilter.h
utils.c
v4l2-common.c
v4l2-common.h avdevice/v4l2*: Improve included headers 2022-05-10 07:38:01 +02:00
v4l2.c avdevice/v4l2*: Improve included headers 2022-05-10 07:38:01 +02:00
v4l2enc.c avdevice/v4l2*: Improve included headers 2022-05-10 07:38:01 +02:00
version_major.h libavdevice: Split version.h 2022-03-16 14:05:26 +02:00
version.c lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
version.h Bump Versions for 5.1 branch 2022-07-13 00:27:37 +02:00
vfwcap.c
xcbgrab.c
xv.c avformat/internal: Move muxing-only functions to new mux.h header 2022-05-10 07:27:01 +02:00