| 1075 | extern "C" { |
| 1076 | |
| 1077 | av_cold int ff_decklink_read_close(AVFormatContext *avctx) |
| 1078 | { |
| 1079 | struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; |
| 1080 | struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; |
| 1081 | |
| 1082 | if (ctx->dli) { |
| 1083 | ctx->dli->StopStreams(); |
| 1084 | ctx->dli->DisableVideoInput(); |
| 1085 | ctx->dli->DisableAudioInput(); |
| 1086 | ctx->dli->SetCallback(nullptr); |
| 1087 | } |
| 1088 | |
| 1089 | ff_decklink_cleanup(avctx); |
| 1090 | ff_decklink_packet_queue_end(&ctx->queue); |
| 1091 | |
| 1092 | av_freep(&cctx->ctx); |
| 1093 | |
| 1094 | return 0; |
| 1095 | } |
| 1096 | |
| 1097 | av_cold int ff_decklink_read_header(AVFormatContext *avctx) |
| 1098 | { |
nothing calls this directly
no test coverage detected