| 651 | } |
| 652 | |
| 653 | void ff_decklink_cleanup(AVFormatContext *avctx) |
| 654 | { |
| 655 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 656 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 657 | |
| 658 | if (ctx->dli) |
| 659 | ctx->dli->Release(); |
| 660 | if (ctx->dlo) |
| 661 | ctx->dlo->Release(); |
| 662 | if (ctx->attr) |
| 663 | ctx->attr->Release(); |
| 664 | if (ctx->cfg) |
| 665 | ctx->cfg->Release(); |
| 666 | if (ctx->dl) |
| 667 | ctx->dl->Release(); |
| 668 | } |
| 669 | |
| 670 | int ff_decklink_init_device(AVFormatContext *avctx, const char* name) |
| 671 | { |
no test coverage detected