Merge commit '4a37d4b3f8137a4c2bbbca043de076af966b9446'

* commit '4a37d4b3f8137a4c2bbbca043de076af966b9446':
  lavfi: add const to the pads parameter of avfilter_pad_get_name/type
  lavfi: add const to AVFilterContext.filter.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/21/head
Michael Niedermayer 12 years ago
commit 9f3ae7aafd
  1. 4
      libavfilter/avfilter.c
  2. 6
      libavfilter/avfilter.h

@ -867,12 +867,12 @@ fail:
return ret; return ret;
} }
const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx) const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx)
{ {
return pads[pad_idx].name; return pads[pad_idx].name;
} }
enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx) enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx)
{ {
return pads[pad_idx].type; return pads[pad_idx].type;
} }

@ -397,7 +397,7 @@ struct AVFilterPad {
* *
* @return name of the pad_idx'th pad in pads * @return name of the pad_idx'th pad in pads
*/ */
const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx); const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx);
/** /**
* Get the type of an AVFilterPad. * Get the type of an AVFilterPad.
@ -408,7 +408,7 @@ const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx);
* *
* @return type of the pad_idx'th pad in pads * @return type of the pad_idx'th pad in pads
*/ */
enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx); enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx);
/** /**
* Filter definition. This defines the pads a filter contains, and all the * Filter definition. This defines the pads a filter contains, and all the
@ -507,7 +507,7 @@ typedef struct AVFilter {
struct AVFilterContext { struct AVFilterContext {
const AVClass *av_class; ///< needed for av_log() const AVClass *av_class; ///< needed for av_log()
AVFilter *filter; ///< the AVFilter of which this is an instance const AVFilter *filter; ///< the AVFilter of which this is an instance
char *name; ///< name of this filter instance char *name; ///< name of this filter instance

Loading…
Cancel
Save