lavfi/buffersink: rename filter structures.

Reduce the diff with the fork.
pull/12/merge
Nicolas George 12 years ago
parent f7b041b11b
commit 9a2688826d
  1. 8
      libavfilter/allfilters.c
  2. 12
      libavfilter/buffersink.c

@ -185,17 +185,13 @@ void avfilter_register_all(void)
REGISTER_FILTER_UNCONDITIONAL(vsink_ffbuffersink); REGISTER_FILTER_UNCONDITIONAL(vsink_ffbuffersink);
REGISTER_FILTER_UNCONDITIONAL(asink_ffabuffersink); REGISTER_FILTER_UNCONDITIONAL(asink_ffabuffersink);
#if !AV_HAVE_INCOMPATIBLE_FORK_ABI
REGISTER_FILTER_UNCONDITIONAL(vsink_buffersink);
REGISTER_FILTER_UNCONDITIONAL(asink_abuffersink);
#endif
/* those filters are part of public or internal API => registered /* those filters are part of public or internal API => registered
* unconditionally */ * unconditionally */
REGISTER_FILTER_UNCONDITIONAL(asrc_abuffer); REGISTER_FILTER_UNCONDITIONAL(asrc_abuffer);
REGISTER_FILTER_UNCONDITIONAL(vsrc_buffer); REGISTER_FILTER_UNCONDITIONAL(vsrc_buffer);
//REGISTER_FILTER_UNCONDITIONAL(asink_abuffer); REGISTER_FILTER_UNCONDITIONAL(asink_abuffer);
//REGISTER_FILTER_UNCONDITIONAL(vsink_buffer); REGISTER_FILTER_UNCONDITIONAL(vsink_buffer);
REGISTER_FILTER_UNCONDITIONAL(af_afifo); REGISTER_FILTER_UNCONDITIONAL(af_afifo);
REGISTER_FILTER_UNCONDITIONAL(vf_fifo); REGISTER_FILTER_UNCONDITIONAL(vf_fifo);
} }

@ -512,7 +512,7 @@ AVFilter avfilter_asink_ffabuffersink = {
.outputs = NULL, .outputs = NULL,
}; };
static const AVFilterPad buffersink_inputs[] = { static const AVFilterPad avfilter_vsink_buffer_inputs[] = {
{ {
.name = "default", .name = "default",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
@ -521,7 +521,7 @@ static const AVFilterPad buffersink_inputs[] = {
{ NULL } { NULL }
}; };
AVFilter avfilter_vsink_buffersink = { AVFilter avfilter_vsink_buffer = {
.name = "buffersink", .name = "buffersink",
.description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."), .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."),
.priv_size = sizeof(BufferSinkContext), .priv_size = sizeof(BufferSinkContext),
@ -529,11 +529,11 @@ AVFilter avfilter_vsink_buffersink = {
.uninit = uninit, .uninit = uninit,
.query_formats = vsink_query_formats, .query_formats = vsink_query_formats,
.inputs = buffersink_inputs, .inputs = avfilter_vsink_buffer_inputs,
.outputs = NULL, .outputs = NULL,
}; };
static const AVFilterPad abuffersink_inputs[] = { static const AVFilterPad avfilter_asink_abuffer_inputs[] = {
{ {
.name = "default", .name = "default",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
@ -542,7 +542,7 @@ static const AVFilterPad abuffersink_inputs[] = {
{ NULL } { NULL }
}; };
AVFilter avfilter_asink_abuffersink = { AVFilter avfilter_asink_abuffer = {
.name = "abuffersink", .name = "abuffersink",
.description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."), .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."),
.priv_size = sizeof(BufferSinkContext), .priv_size = sizeof(BufferSinkContext),
@ -550,6 +550,6 @@ AVFilter avfilter_asink_abuffersink = {
.uninit = uninit, .uninit = uninit,
.query_formats = asink_query_formats, .query_formats = asink_query_formats,
.inputs = abuffersink_inputs, .inputs = avfilter_asink_abuffer_inputs,
.outputs = NULL, .outputs = NULL,
}; };

Loading…
Cancel
Save