History

avdevice/avdevice: Constify avdevice_list_input_sources/output_sinks

Andreas Rheinhardt committed 5 years ago

Commit d7e0d421 parent 46dac8c4 files · +10 −6Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. fftools/cmdutils.c +2 −2
  3. libavdevice/avdevice.c +2 −2
  4. libavdevice/avdevice.h +2 −2
doc/APIchanges+4−0
@@ -14,6 +14,10 @@ libavutil: 2017-10-21 · 13 unmodified lines
14 14
15API changes, most recent first:15API changes, most recent first:
16 16
172021-04-27 - xxxxxxxxxx - lavd yyyyyyyyy - avdevice.h
18 avdevice_list_input_sources and avdevice_list_output_sinks now accept
19 pointers to const AVInputFormat resp. const AVOutputFormat.
20
172021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h212021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h
18 av_find_best_stream now uses a const AVCodec ** parameter22 av_find_best_stream now uses a const AVCodec ** parameter
19 for the returned decoder.23 for the returned decoder.
fftools/cmdutils.c+2−2
@@ -2205,7 +2205,7 @@ double get_rotation(AVStream *st) · 2204 unmodified lines
2205}2205}
2206 2206
2207#if CONFIG_AVDEVICE2207#if CONFIG_AVDEVICE
2208static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts)2208static int print_device_sources(const AVInputFormat *fmt, AVDictionary *opts)
2209{2209{
2210 int ret, i;2210 int ret, i;
2211 AVDeviceInfoList *device_list = NULL;2211 AVDeviceInfoList *device_list = NULL;
@@ -2235,7 +2235,7 @@ static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts) · 23 unmodified lines
2235 return ret;2235 return ret;
2236}2236}
2237 2237
2238static int print_device_sinks(AVOutputFormat *fmt, AVDictionary *opts)2238static int print_device_sinks(const AVOutputFormat *fmt, AVDictionary *opts)
2239{2239{
2240 int ret, i;2240 int ret, i;
2241 AVDeviceInfoList *device_list = NULL;2241 AVDeviceInfoList *device_list = NULL;
libavdevice/avdevice.c+2−2
@@ -120,7 +120,7 @@ static int list_devices_for_context(AVFormatContext *s, AVDictionary *options, · 119 unmodified lines
120 return ret;120 return ret;
121}121}
122 122
123int avdevice_list_input_sources(AVInputFormat *device, const char *device_name,123int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
124 AVDictionary *device_options, AVDeviceInfoList **device_list)124 AVDictionary *device_options, AVDeviceInfoList **device_list)
125{125{
126 AVFormatContext *s = NULL;126 AVFormatContext *s = NULL;
@@ -131,7 +131,7 @@ int avdevice_list_input_sources(AVInputFormat *device, const char *device_name, · 4 unmodified lines
131 return list_devices_for_context(s, device_options, device_list);131 return list_devices_for_context(s, device_options, device_list);
132}132}
133 133
134int avdevice_list_output_sinks(AVOutputFormat *device, const char *device_name,134int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
135 AVDictionary *device_options, AVDeviceInfoList **device_list)135 AVDictionary *device_options, AVDeviceInfoList **device_list)
136{136{
137 AVFormatContext *s = NULL;137 AVFormatContext *s = NULL;
libavdevice/avdevice.h+2−2
@@ -507,9 +507,9 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list); · 506 unmodified lines
507 * @return count of autodetected devices, negative on error.507 * @return count of autodetected devices, negative on error.
508 * @note device argument takes precedence over device_name when both are set.508 * @note device argument takes precedence over device_name when both are set.
509 */509 */
510int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name,510int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
511 AVDictionary *device_options, AVDeviceInfoList **device_list);511 AVDictionary *device_options, AVDeviceInfoList **device_list);
512int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name,512int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
513 AVDictionary *device_options, AVDeviceInfoList **device_list);513 AVDictionary *device_options, AVDeviceInfoList **device_list);
514 514
515/**515/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t