mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
avdevice/avdevice: Constify avdevice_list_input_sources/output_sinks
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
46dac8cf3d
commit
d7e0d428fa
@@ -120,7 +120,7 @@ static int list_devices_for_context(AVFormatContext *s, AVDictionary *options,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int avdevice_list_input_sources(AVInputFormat *device, const char *device_name,
|
||||
int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
|
||||
AVDictionary *device_options, AVDeviceInfoList **device_list)
|
||||
{
|
||||
AVFormatContext *s = NULL;
|
||||
@@ -131,7 +131,7 @@ int avdevice_list_input_sources(AVInputFormat *device, const char *device_name,
|
||||
return list_devices_for_context(s, device_options, device_list);
|
||||
}
|
||||
|
||||
int avdevice_list_output_sinks(AVOutputFormat *device, const char *device_name,
|
||||
int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
|
||||
AVDictionary *device_options, AVDeviceInfoList **device_list)
|
||||
{
|
||||
AVFormatContext *s = NULL;
|
||||
|
||||
@@ -507,9 +507,9 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list);
|
||||
* @return count of autodetected devices, negative on error.
|
||||
* @note device argument takes precedence over device_name when both are set.
|
||||
*/
|
||||
int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name,
|
||||
int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
|
||||
AVDictionary *device_options, AVDeviceInfoList **device_list);
|
||||
int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name,
|
||||
int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
|
||||
AVDictionary *device_options, AVDeviceInfoList **device_list);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user