mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
af_resample: switch to child_class_iterate()
This commit is contained in:
parent
3dd324427a
commit
342230a537
@ -306,10 +306,19 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if FF_API_CHILD_CLASS_NEXT
|
||||
static const AVClass *resample_child_class_next(const AVClass *prev)
|
||||
{
|
||||
return prev ? NULL : avresample_get_class();
|
||||
}
|
||||
#endif
|
||||
|
||||
static const AVClass *resample_child_class_iterate(void **iter)
|
||||
{
|
||||
const AVClass *c = *iter ? NULL : avresample_get_class();
|
||||
*iter = (void*)(uintptr_t)c;
|
||||
return c;
|
||||
}
|
||||
|
||||
static void *resample_child_next(void *obj, void *prev)
|
||||
{
|
||||
@ -321,7 +330,10 @@ static const AVClass resample_class = {
|
||||
.class_name = "resample",
|
||||
.item_name = av_default_item_name,
|
||||
.version = LIBAVUTIL_VERSION_INT,
|
||||
#if FF_API_CHILD_CLASS_NEXT
|
||||
.child_class_next = resample_child_class_next,
|
||||
#endif
|
||||
.child_class_iterate = resample_child_class_iterate,
|
||||
.child_next = resample_child_next,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user