diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-12 21:57:57 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-13 13:10:17 +0400 |
commit | 84b9fbe05578c8b4058e72bb0b203665a446a95a (patch) | |
tree | d0c6c70c2827ec4af83ba5acd86831771bebfcc2 /libavfilter/avfilter.c | |
parent | 6d58358a3a3274e84a4e34a348165fbb3f484587 (diff) |
lavfi: add avfilter_pad_get_type() and avfilter_pad_get_name().
This will allow making AVFilterPad opaque for the calling apps, since
those are the only two fields that can be useful to the users.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 9b62be33ca..0507b2acbd 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -429,6 +429,16 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque return ret; } +const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx) +{ + return pads[pad_idx].name; +} + +enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx) +{ + return pads[pad_idx].type; +} + #if FF_API_DEFAULT_CONFIG_OUTPUT_LINK int avfilter_default_config_output_link(AVFilterLink *link) { |