History

avdevice/avdevice: Constify avdevice_list_input_sources/output_sinks

Andreas Rheinhardt committed 5 years ago

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

Showing the changes to libavdevice (2 of 4 files). Show all

Unified · Split

2 files
  1. libavdevice/avdevice.c +2 −2
  2. libavdevice/avdevice.h +2 −2
libavdevice/avdevice.c+2−2
@@ -120,7 +120,7 @@ static int list_devices_for_context(AVFormatContext *s, AVDictionary *options, · 119 unmodified lines
120120 return ret;
121121 }
122122
123−int avdevice_list_input_sources(AVInputFormat *device, const char *device_name,
123+int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
124124 AVDictionary *device_options, AVDeviceInfoList **device_list)
125125 {
126126 AVFormatContext *s = NULL;
@@ -131,7 +131,7 @@ int avdevice_list_input_sources(AVInputFormat *device, const char *device_name, · 4 unmodified lines
131131 return list_devices_for_context(s, device_options, device_list);
132132 }
133133
134−int avdevice_list_output_sinks(AVOutputFormat *device, const char *device_name,
134+int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
135135 AVDictionary *device_options, AVDeviceInfoList **device_list)
136136 {
137137 AVFormatContext *s = NULL;
libavdevice/avdevice.h+2−2
@@ -507,9 +507,9 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list); · 506 unmodified lines
507507 * @return count of autodetected devices, negative on error.
508508 * @note device argument takes precedence over device_name when both are set.
509509 */
510−int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name,
510+int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
511511 AVDictionary *device_options, AVDeviceInfoList **device_list);
512−int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name,
512+int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
513513 AVDictionary *device_options, AVDeviceInfoList **device_list);
514514
515515 /**

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