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
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