Unified · Split
| @@ -455,19 +455,11 @@ static int request_frame(AVFilterLink *link) · 454 unmodified lines | |||
| 455 | return ret; | 455 | return ret; |
| 456 | } | 456 | } |
| 457 | 457 | ||
| 458 | static int poll_frame(AVFilterLink *link) | ||
| 459 | { | ||
| 460 | BufferSourceContext *c = link->src->priv; | ||
| 461 | av_assert0(c->queued_frame == NULL); | ||
| 462 | return c->eof ? AVERROR_EOF : 0; | ||
| 463 | } | ||
| 464 | |||
| 465 | static const AVFilterPad avfilter_vsrc_buffer_outputs[] = { | 458 | static const AVFilterPad avfilter_vsrc_buffer_outputs[] = { |
| 466 | { | 459 | { |
| 467 | .name = "default", | 460 | .name = "default", |
| 468 | .type = AVMEDIA_TYPE_VIDEO, | 461 | .type = AVMEDIA_TYPE_VIDEO, |
| 469 | .request_frame = request_frame, | 462 | .request_frame = request_frame, |
| 470 | .poll_frame = poll_frame, | ||
| 471 | .config_props = config_props, | 463 | .config_props = config_props, |
| 472 | }, | 464 | }, |
| 473 | { NULL } | 465 | { NULL } |
| @@ -492,7 +484,6 @@ static const AVFilterPad avfilter_asrc_abuffer_outputs[] = { · 18 unmodified lines | |||
| 492 | .name = "default", | 484 | .name = "default", |
| 493 | .type = AVMEDIA_TYPE_AUDIO, | 485 | .type = AVMEDIA_TYPE_AUDIO, |
| 494 | .request_frame = request_frame, | 486 | .request_frame = request_frame, |
| 495 | .poll_frame = poll_frame, | ||
| 496 | .config_props = config_props, | 487 | .config_props = config_props, |
| 497 | }, | 488 | }, |
| 498 | { NULL } | 489 | { NULL } |