MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_decklink_read_close

Function ff_decklink_read_close

libavdevice/decklink_dec.cpp:1077–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075extern "C" {
1076
1077av_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
1097av_cold int ff_decklink_read_header(AVFormatContext *avctx)
1098{

Callers

nothing calls this directly

Calls 3

ff_decklink_cleanupFunction · 0.85
av_freepFunction · 0.85

Tested by

no test coverage detected