avdevice/alldevices: Mark iterators as av_cold

Because they are.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2024-03-13 18:05:29 +01:00 committed by Paul B Mahol
parent 856f121a6b
commit d90b5e06f5

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/attributes.h"
#include "libavutil/attributes_internal.h"
#include "libavformat/demux.h"
#include "libavformat/internal.h"
@ -66,12 +67,12 @@ FF_VISIBILITY_POP_HIDDEN
#include "libavdevice/outdev_list.c"
#include "libavdevice/indev_list.c"
void avdevice_register_all(void)
av_cold void avdevice_register_all(void)
{
avpriv_register_devices(outdev_list, indev_list);
}
static const void *next_input(const AVInputFormat *prev, AVClassCategory c2)
static av_cold const void *next_input(const AVInputFormat *prev, AVClassCategory c2)
{
const AVClass *pc;
const AVClassCategory c1 = AV_CLASS_CATEGORY_DEVICE_INPUT;
@ -97,7 +98,7 @@ static const void *next_input(const AVInputFormat *prev, AVClassCategory c2)
return fmt;
}
static const void *next_output(const AVOutputFormat *prev, AVClassCategory c2)
static av_cold const void *next_output(const AVOutputFormat *prev, AVClassCategory c2)
{
const AVClass *pc;
const AVClassCategory c1 = AV_CLASS_CATEGORY_DEVICE_OUTPUT;
@ -123,22 +124,22 @@ static const void *next_output(const AVOutputFormat *prev, AVClassCategory c2)
return fmt;
}
const AVInputFormat *av_input_audio_device_next(const AVInputFormat *d)
av_cold const AVInputFormat *av_input_audio_device_next(const AVInputFormat *d)
{
return next_input(d, AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT);
}
const AVInputFormat *av_input_video_device_next(const AVInputFormat *d)
av_cold const AVInputFormat *av_input_video_device_next(const AVInputFormat *d)
{
return next_input(d, AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT);
}
const AVOutputFormat *av_output_audio_device_next(const AVOutputFormat *d)
av_cold const AVOutputFormat *av_output_audio_device_next(const AVOutputFormat *d)
{
return next_output(d, AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT);
}
const AVOutputFormat *av_output_video_device_next(const AVOutputFormat *d)
av_cold const AVOutputFormat *av_output_video_device_next(const AVOutputFormat *d)
{
return next_output(d, AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT);
}