Commit 4a37d4b3 authored by Anton Khirnov's avatar Anton Khirnov

lavfi: add const to the pads parameter of avfilter_pad_get_name/type

parent 91d2efa7
...@@ -627,12 +627,12 @@ fail: ...@@ -627,12 +627,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;
} }
......
...@@ -359,7 +359,7 @@ struct AVFilterPad { ...@@ -359,7 +359,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.
...@@ -370,7 +370,7 @@ const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx); ...@@ -370,7 +370,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment