History

Revert "all: Don't set AVClass.item_name to its default value"

Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.

Anton Khirnov committed 2 years ago

Commit 08bebeb1 parent a8bc79c363 files · +408 −0Browse files

Showing the changes to libavdevice (33 of 363 files). Show all

Unified · Split

33 files
  1. libavdevice/alsa_dec.c +1 −0
  2. libavdevice/alsa_enc.c +1 −0
  3. libavdevice/android_camera.c +1 −0
  4. libavdevice/audiotoolbox.m +1 −0
  5. libavdevice/avfoundation.m +1 −0
  6. libavdevice/bktr.c +1 −0
  7. libavdevice/caca.c +1 −0
  8. libavdevice/decklink_dec_c.c +1 −0
  9. libavdevice/decklink_enc_c.c +1 −0
  10. libavdevice/dshow.c +1 −0
  11. libavdevice/fbdev_dec.c +1 −0
  12. libavdevice/fbdev_enc.c +1 −0
  13. libavdevice/gdigrab.c +1 −0
  14. libavdevice/iec61883.c +1 −0
  15. libavdevice/jack.c +1 −0
  16. libavdevice/kmsgrab.c +1 −0
  17. libavdevice/lavfi.c +1 −0
  18. libavdevice/libcdio.c +1 −0
  19. libavdevice/libdc1394.c +1 −0
  20. libavdevice/openal-dec.c +1 −0
  21. libavdevice/opengl_enc.c +1 −0
  22. libavdevice/oss_dec.c +1 −0
  23. libavdevice/oss_enc.c +1 −0
  24. libavdevice/pulse_audio_dec.c +1 −0
  25. libavdevice/pulse_audio_enc.c +1 −0
  26. libavdevice/sdl2.c +1 −0
  27. libavdevice/sndio_dec.c +1 −0
  28. libavdevice/sndio_enc.c +1 −0
  29. libavdevice/v4l2.c +1 −0
  30. libavdevice/v4l2enc.c +1 −0
  31. libavdevice/vfwcap.c +1 −0
  32. libavdevice/xcbgrab.c +1 −0
  33. libavdevice/xv.c +1 −0
libavdevice/alsa_dec.c+1−0
@@ -151,6 +151,7 @@ static const AVOption options[] = { · 150 unmodified lines
151151
152152 static const AVClass alsa_demuxer_class = {
153153 .class_name = "ALSA indev",
154+ .item_name = av_default_item_name,
154155 .option = options,
155156 .version = LIBAVUTIL_VERSION_INT,
156157 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/alsa_enc.c+1−0
@@ -161,6 +161,7 @@ static int audio_get_device_list(AVFormatContext *h, AVDeviceInfoList *device_li · 160 unmodified lines
161161
162162 static const AVClass alsa_muxer_class = {
163163 .class_name = "ALSA outdev",
164+ .item_name = av_default_item_name,
164165 .version = LIBAVUTIL_VERSION_INT,
165166 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
166167 };
libavdevice/android_camera.c+1−0
@@ -854,6 +854,7 @@ static const AVOption options[] = { · 853 unmodified lines
854854
855855 static const AVClass android_camera_class = {
856856 .class_name = "android_camera indev",
857+ .item_name = av_default_item_name,
857858 .option = options,
858859 .version = LIBAVUTIL_VERSION_INT,
859860 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/audiotoolbox.m+1−0
@@ -293,6 +293,7 @@ static const AVOption options[] = { · 292 unmodified lines
293293
294294 static const AVClass at_class = {
295295 .class_name = "AudioToolbox",
296+ .item_name = av_default_item_name,
296297 .option = options,
297298 .version = LIBAVUTIL_VERSION_INT,
298299 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
libavdevice/avfoundation.m+1−0
@@ -1286,6 +1286,7 @@ static const AVOption options[] = { · 1285 unmodified lines
12861286
12871287 static const AVClass avf_class = {
12881288 .class_name = "AVFoundation indev",
1289+ .item_name = av_default_item_name,
12891290 .option = options,
12901291 .version = LIBAVUTIL_VERSION_INT,
12911292 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/bktr.c+1−0
@@ -343,6 +343,7 @@ static const AVOption options[] = { · 342 unmodified lines
343343
344344 static const AVClass bktr_class = {
345345 .class_name = "BKTR grab indev",
346+ .item_name = av_default_item_name,
346347 .option = options,
347348 .version = LIBAVUTIL_VERSION_INT,
348349 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/caca.c+1−0
@@ -215,6 +215,7 @@ static const AVOption options[] = { · 214 unmodified lines
215215
216216 static const AVClass caca_class = {
217217 .class_name = "caca outdev",
218+ .item_name = av_default_item_name,
218219 .option = options,
219220 .version = LIBAVUTIL_VERSION_INT,
220221 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
libavdevice/decklink_dec_c.c+1−0
@@ -105,6 +105,7 @@ static const AVOption options[] = { · 104 unmodified lines
105105
106106 static const AVClass decklink_demuxer_class = {
107107 .class_name = "Blackmagic DeckLink indev",
108+ .item_name = av_default_item_name,
108109 .option = options,
109110 .version = LIBAVUTIL_VERSION_INT,
110111 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/decklink_enc_c.c+1−0
@@ -67,6 +67,7 @@ static const AVOption options[] = { · 66 unmodified lines
6767
6868 static const AVClass decklink_muxer_class = {
6969 .class_name = "Blackmagic DeckLink outdev",
70+ .item_name = av_default_item_name,
7071 .option = options,
7172 .version = LIBAVUTIL_VERSION_INT,
7273 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
libavdevice/dshow.c+1−0
@@ -1918,6 +1918,7 @@ static const AVOption options[] = { · 1917 unmodified lines
19181918
19191919 static const AVClass dshow_class = {
19201920 .class_name = "dshow indev",
1921+ .item_name = av_default_item_name,
19211922 .option = options,
19221923 .version = LIBAVUTIL_VERSION_INT,
19231924 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/fbdev_dec.c+1−0
@@ -226,6 +226,7 @@ static const AVOption options[] = { · 225 unmodified lines
226226
227227 static const AVClass fbdev_class = {
228228 .class_name = "fbdev indev",
229+ .item_name = av_default_item_name,
229230 .option = options,
230231 .version = LIBAVUTIL_VERSION_INT,
231232 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/fbdev_enc.c+1−0
@@ -201,6 +201,7 @@ static const AVOption options[] = { · 200 unmodified lines
201201
202202 static const AVClass fbdev_class = {
203203 .class_name = "fbdev outdev",
204+ .item_name = av_default_item_name,
204205 .option = options,
205206 .version = LIBAVUTIL_VERSION_INT,
206207 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
libavdevice/gdigrab.c+1−0
@@ -670,6 +670,7 @@ static const AVOption options[] = { · 669 unmodified lines
670670
671671 static const AVClass gdigrab_class = {
672672 .class_name = "GDIgrab indev",
673+ .item_name = av_default_item_name,
673674 .option = options,
674675 .version = LIBAVUTIL_VERSION_INT,
675676 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/iec61883.c+1−0
@@ -496,6 +496,7 @@ static const AVOption options[] = { · 495 unmodified lines
496496
497497 static const AVClass iec61883_class = {
498498 .class_name = "iec61883 indev",
499+ .item_name = av_default_item_name,
499500 .option = options,
500501 .version = LIBAVUTIL_VERSION_INT,
501502 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/jack.c+1−0
@@ -335,6 +335,7 @@ static const AVOption options[] = { · 334 unmodified lines
335335
336336 static const AVClass jack_indev_class = {
337337 .class_name = "JACK indev",
338+ .item_name = av_default_item_name,
338339 .option = options,
339340 .version = LIBAVUTIL_VERSION_INT,
340341 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/kmsgrab.c+1−0
@@ -702,6 +702,7 @@ static const AVOption options[] = { · 701 unmodified lines
702702
703703 static const AVClass kmsgrab_class = {
704704 .class_name = "kmsgrab indev",
705+ .item_name = av_default_item_name,
705706 .option = options,
706707 .version = LIBAVUTIL_VERSION_INT,
707708 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/lavfi.c+1−0
@@ -487,6 +487,7 @@ static const AVOption options[] = { · 486 unmodified lines
487487
488488 static const AVClass lavfi_class = {
489489 .class_name = "lavfi indev",
490+ .item_name = av_default_item_name,
490491 .option = options,
491492 .version = LIBAVUTIL_VERSION_INT,
492493 .category = AV_CLASS_CATEGORY_DEVICE_INPUT,
libavdevice/libcdio.c+1−0
@@ -174,6 +174,7 @@ static const AVOption options[] = { · 173 unmodified lines
174174
175175 static const AVClass libcdio_class = {
176176 .class_name = "libcdio indev",
177+ .item_name = av_default_item_name,
177178 .option = options,
178179 .version = LIBAVUTIL_VERSION_INT,
179180 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/libdc1394.c+1−0
@@ -87,6 +87,7 @@ static const AVOption options[] = { · 86 unmodified lines
8787
8888 static const AVClass libdc1394_class = {
8989 .class_name = "libdc1394 indev",
90+ .item_name = av_default_item_name,
9091 .option = options,
9192 .version = LIBAVUTIL_VERSION_INT,
9293 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/openal-dec.c+1−0
@@ -242,6 +242,7 @@ static const AVOption options[] = { · 241 unmodified lines
242242
243243 static const AVClass class = {
244244 .class_name = "openal indev",
245+ .item_name = av_default_item_name,
245246 .option = options,
246247 .version = LIBAVUTIL_VERSION_INT,
247248 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/opengl_enc.c+1−0
@@ -1291,6 +1291,7 @@ static const AVOption options[] = { · 1290 unmodified lines
12911291
12921292 static const AVClass opengl_class = {
12931293 .class_name = "opengl outdev",
1294+ .item_name = av_default_item_name,
12941295 .option = options,
12951296 .version = LIBAVUTIL_VERSION_INT,
12961297 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
libavdevice/oss_dec.c+1−0
@@ -124,6 +124,7 @@ static const AVOption options[] = { · 123 unmodified lines
124124
125125 static const AVClass oss_demuxer_class = {
126126 .class_name = "OSS indev",
127+ .item_name = av_default_item_name,
127128 .option = options,
128129 .version = LIBAVUTIL_VERSION_INT,
129130 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/oss_enc.c+1−0
@@ -90,6 +90,7 @@ static int audio_write_trailer(AVFormatContext *s1) · 89 unmodified lines
9090
9191 static const AVClass oss_muxer_class = {
9292 .class_name = "OSS outdev",
93+ .item_name = av_default_item_name,
9394 .version = LIBAVUTIL_VERSION_INT,
9495 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
9596 };
libavdevice/pulse_audio_dec.c+1−0
@@ -387,6 +387,7 @@ static const AVOption options[] = { · 386 unmodified lines
387387
388388 static const AVClass pulse_demuxer_class = {
389389 .class_name = "Pulse indev",
390+ .item_name = av_default_item_name,
390391 .option = options,
391392 .version = LIBAVUTIL_VERSION_INT,
392393 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/pulse_audio_enc.c+1−0
@@ -783,6 +783,7 @@ static const AVOption options[] = { · 782 unmodified lines
783783
784784 static const AVClass pulse_muxer_class = {
785785 .class_name = "PulseAudio outdev",
786+ .item_name = av_default_item_name,
786787 .option = options,
787788 .version = LIBAVUTIL_VERSION_INT,
788789 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
libavdevice/sdl2.c+1−0
@@ -350,6 +350,7 @@ static const AVOption options[] = { · 349 unmodified lines
350350
351351 static const AVClass sdl2_class = {
352352 .class_name = "sdl2 outdev",
353+ .item_name = av_default_item_name,
353354 .option = options,
354355 .version = LIBAVUTIL_VERSION_INT,
355356 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
libavdevice/sndio_dec.c+1−0
@@ -103,6 +103,7 @@ static const AVOption options[] = { · 102 unmodified lines
103103
104104 static const AVClass sndio_demuxer_class = {
105105 .class_name = "sndio indev",
106+ .item_name = av_default_item_name,
106107 .option = options,
107108 .version = LIBAVUTIL_VERSION_INT,
108109 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT,
libavdevice/sndio_enc.c+1−0
@@ -82,6 +82,7 @@ static int audio_write_trailer(AVFormatContext *s1) · 81 unmodified lines
8282
8383 static const AVClass sndio_muxer_class = {
8484 .class_name = "sndio outdev",
85+ .item_name = av_default_item_name,
8586 .version = LIBAVUTIL_VERSION_INT,
8687 .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT,
8788 };
libavdevice/v4l2.c+1−0
@@ -1128,6 +1128,7 @@ static const AVOption options[] = { · 1127 unmodified lines
11281128
11291129 static const AVClass v4l2_class = {
11301130 .class_name = "V4L2 indev",
1131+ .item_name = av_default_item_name,
11311132 .option = options,
11321133 .version = LIBAVUTIL_VERSION_INT,
11331134 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/v4l2enc.c+1−0
@@ -107,6 +107,7 @@ static int write_trailer(AVFormatContext *s1) · 106 unmodified lines
107107
108108 static const AVClass v4l2_class = {
109109 .class_name = "V4L2 outdev",
110+ .item_name = av_default_item_name,
110111 .version = LIBAVUTIL_VERSION_INT,
111112 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,
112113 };
libavdevice/vfwcap.c+1−0
@@ -476,6 +476,7 @@ static const AVOption options[] = { · 475 unmodified lines
476476
477477 static const AVClass vfw_class = {
478478 .class_name = "VFW indev",
479+ .item_name = av_default_item_name,
479480 .option = options,
480481 .version = LIBAVUTIL_VERSION_INT,
481482 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
libavdevice/xcbgrab.c+1−0
@@ -102,6 +102,7 @@ static const AVOption options[] = { · 101 unmodified lines
102102
103103 static const AVClass xcbgrab_class = {
104104 .class_name = "xcbgrab indev",
105+ .item_name = av_default_item_name,
105106 .option = options,
106107 .version = LIBAVUTIL_VERSION_INT,
107108 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
libavdevice/xv.c+1−0
@@ -371,6 +371,7 @@ static const AVOption options[] = { · 370 unmodified lines
371371
372372 static const AVClass xv_class = {
373373 .class_name = "xvideo outdev",
374+ .item_name = av_default_item_name,
374375 .option = options,
375376 .version = LIBAVUTIL_VERSION_INT,
376377 .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT,

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