mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
46dac8cf3d
commit
d7e0d428fa
|
@ -14,6 +14,10 @@ libavutil: 2017-10-21
|
||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2021-04-27 - xxxxxxxxxx - lavd yyyyyyyyy - avdevice.h
|
||||||
|
avdevice_list_input_sources and avdevice_list_output_sinks now accept
|
||||||
|
pointers to const AVInputFormat resp. const AVOutputFormat.
|
||||||
|
|
||||||
2021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h
|
2021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h
|
||||||
av_find_best_stream now uses a const AVCodec ** parameter
|
av_find_best_stream now uses a const AVCodec ** parameter
|
||||||
for the returned decoder.
|
for the returned decoder.
|
||||||
|
|
|
@ -2205,7 +2205,7 @@ double get_rotation(AVStream *st)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_AVDEVICE
|
#if CONFIG_AVDEVICE
|
||||||
static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts)
|
static int print_device_sources(const AVInputFormat *fmt, AVDictionary *opts)
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret, i;
|
||||||
AVDeviceInfoList *device_list = NULL;
|
AVDeviceInfoList *device_list = NULL;
|
||||||
|
@ -2235,7 +2235,7 @@ static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int print_device_sinks(AVOutputFormat *fmt, AVDictionary *opts)
|
static int print_device_sinks(const AVOutputFormat *fmt, AVDictionary *opts)
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret, i;
|
||||||
AVDeviceInfoList *device_list = NULL;
|
AVDeviceInfoList *device_list = NULL;
|
||||||
|
|
|
@ -120,7 +120,7 @@ static int list_devices_for_context(AVFormatContext *s, AVDictionary *options,
|
||||||
return ret;
|
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)
|
AVDictionary *device_options, AVDeviceInfoList **device_list)
|
||||||
{
|
{
|
||||||
AVFormatContext *s = NULL;
|
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);
|
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)
|
AVDictionary *device_options, AVDeviceInfoList **device_list)
|
||||||
{
|
{
|
||||||
AVFormatContext *s = NULL;
|
AVFormatContext *s = NULL;
|
||||||
|
|
|
@ -507,9 +507,9 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list);
|
||||||
* @return count of autodetected devices, negative on error.
|
* @return count of autodetected devices, negative on error.
|
||||||
* @note device argument takes precedence over device_name when both are set.
|
* @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);
|
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);
|
AVDictionary *device_options, AVDeviceInfoList **device_list);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue