mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavfi: add const to the pads parameter of avfilter_pad_get_name/type
This commit is contained in:
parent
91d2efa7d6
commit
4a37d4b3f8
@ -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 {
|
|||||||
*
|
*
|
||||||
* @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);
|
|||||||
*
|
*
|
||||||
* @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
|
||||||
|
Loading…
Reference in New Issue
Block a user